diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-06-15 12:07:00 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-06-15 12:07:00 +0200 |
commit | 8b2f08271272843778571e967461d00b027d1d99 (patch) | |
tree | 53983857e422e88ee7deac1608b9b88b796d63f1 /templates | |
parent | 2157a022073d6da91c88e510d36b623085c9eeea (diff) | |
download | rabalderz-8b2f08271272843778571e967461d00b027d1d99.tar.gz rabalderz-8b2f08271272843778571e967461d00b027d1d99.tar.bz2 rabalderz-8b2f08271272843778571e967461d00b027d1d99.zip |
Use `feed.xml` as location for atom feed.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/feed.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100644 index 0000000..d3d384a --- /dev/null +++ b/templates/feed.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}"> + <title>{{ config.title }} + {%- if term %} - {{ term.name }} + {%- endif -%} + </title> + <subtitle>{{ trans(key="description", lang=lang) }}</subtitle> + <link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/> + <link href="{{ config.base_url | safe }}"/> + <generator uri="https://www.getzola.org/">Zola</generator> + <updated>{{ last_updated | date(format="%+") }}</updated> + <id>{{ feed_url | safe }}</id> + {%- for page in pages %} + <entry xml:lang="{{ page.lang }}"> + <title>{{ page.title }}</title> + <published>{{ page.date | date(format="%+") }}</published> + <updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated> + <link href="{{ page.permalink | safe }}" type="text/html"/> + <id>{{ page.permalink | safe }}</id> + <content type="html">{{ page.content }}</content> + </entry> + {%- endfor %} +</feed> |