diff --git a/content/events/_index.md b/content/events/_index.md index 7aa67ab6..f230f80a 100644 --- a/content/events/_index.md +++ b/content/events/_index.md @@ -2,4 +2,5 @@ title = "Events" template = "events.html" page_template = "event-page.html" +generate_feeds = true +++ diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 00000000..160088cb --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,57 @@ +{# built from https://github.com/getzola/zola/blob/master/components/templates/src/builtins/rss.xml / MIT #} + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if config.description %} + {{ config.description }} + {%- endif %} + + + + Zola + {% if last_updated is defined %}{{ last_updated | date(format="%+") }}{% endif %} + {{ feed_url | safe }} + {%- for page in pages %} + + {%- if (page.components[0] == "blog") or (section_id and section_id == page.components[0]) -%} + + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} + {% for author in page.authors %} + + + {{ author }} + + + {% else %} + + + {%- if config.author -%} + {{ config.author }} + {%- else -%} + Unknown + {%- endif -%} + + + {% endfor %} + + {{ page.permalink | safe }} + {% if page.summary %} + {{ page.summary }} + {% else %} + {{ page.content }} + {% endif %} + + {%- endif -%} + {%- endfor %} +