diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..c45dafd --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,50 @@ + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if config.description %} {{ config.description }} {%- endif %} + + Zola + {{ last_updated | date(format="%+") + }} + {{ feed_url | safe }} {%- for page in pages %} + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ + page.updated | default(value=page.date) | date(format="%+") }} + + + {%- if page.authors -%} + {{ page.authors[0] }} + {%- elif config.author -%} + {{ config.author }} + {%- else -%} + Unknown + {%- endif -%} + + + + {{ + page.permalink | safe }} + {% if page.summary %} + {{ page.summary }} + {% elif page.description %} + {{ page.description }} + {% endif %} + + {%- endfor %} +