diff options
author | Dennis Eriksen <d@ennis.no> | 2023-01-20 12:06:49 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-01-20 12:06:49 +0100 |
commit | d1d65c94b888c2959c9da799e4329161ede449ea (patch) | |
tree | 7551a0488ebd56d337a5bf22d7b5ec21a0a4a4e2 /templates/atom.xml | |
parent | relative links on front page (diff) | |
download | rikerz-d1d65c94b888c2959c9da799e4329161ede449ea.tar.gz |
Made Riker into a Zola-theme - Rikerz
Diffstat (limited to 'templates/atom.xml')
-rw-r--r-- | templates/atom.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..dd48482 --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,34 @@ +<?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 %} + {%- if not page.extra.hidden|default(value=false) %} + <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 rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/> + <id>{{ page.permalink | safe }}</id> + <content type="html">{{ page.content }}</content> + </entry> + {%- endif %} + {%- endfor %} +</feed> |