summaryrefslogtreecommitdiffstatshomepage
path: root/templates/atom.xml
diff options
context:
space:
mode:
authorWolfgang Müller2021-06-12 14:21:59 +0200
committerWolfgang Müller2021-06-12 14:21:59 +0200
commitad2be2b20c337d99ebe6e7d4b8cf6106cfba77df (patch)
tree65c0ddbb7828fd5b174eb531739097f83a3f17ee /templates/atom.xml
downloadzunzuncito-ad2be2b20c337d99ebe6e7d4b8cf6106cfba77df.tar.gz
Initial commit
Diffstat (limited to '')
-rw-r--r--templates/atom.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/atom.xml b/templates/atom.xml
new file mode 100644
index 0000000..ab0012c
--- /dev/null
+++ b/templates/atom.xml
@@ -0,0 +1,33 @@
+<?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 }}
+ {%- elif section.title %} - {{ section.title }}
+ {%- endif -%}
+ </title>
+ {%- if config.description %}
+ <subtitle>{{ config.description }}</subtitle>
+ {%- endif %}
+ <link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/>
+ <link href="
+ {%- if section -%}
+ {{ section.permalink | escape_xml | safe }}
+ {%- else -%}
+ {{ config.base_url | escape_xml | safe }}
+ {%- endif -%}
+ "/>
+ <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 }}">
+ <author><name>{{ config.extra.author }}</name></author>
+ <title>{{ page.title | default(value="Post № " ~ page.slug)}}</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>