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/rss.xml | |
parent | relative links on front page (diff) | |
download | rikerz-d1d65c94b888c2959c9da799e4329161ede449ea.tar.gz |
Made Riker into a Zola-theme - Rikerz
Diffstat (limited to 'templates/rss.xml')
-rw-r--r-- | templates/rss.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/rss.xml b/templates/rss.xml new file mode 100644 index 0000000..ce12795 --- /dev/null +++ b/templates/rss.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> + <channel> + <title>{{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + </title> + <link>{%- if section -%} + {{ section.permalink | escape_xml | safe }} + {%- else -%} + {{ config.base_url | escape_xml | safe }} + {%- endif -%} + </link> + <description>{{ config.description }}</description> + <generator>Zola</generator> + <language>{{ lang }}</language> + <atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/> + <lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate> + {%- for page in pages %} + {%- if not page.extra.hidden|default(value=false) %} + <item> + <title>{{ page.title }}</title> + <pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate> + <link>{{ page.permalink | escape_xml | safe }}</link> + <guid>{{ page.permalink | escape_xml | safe }}</guid> + <description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description> + </item> + {%- endif %} + {%- endfor %} + </channel> +</rss> |