diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-02 21:10:12 +0530 |
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-02 21:10:12 +0530 |
| commit | d245c05825743e20d2df2900c4f8313d82ebcfe1 (patch) | |
| tree | b82ce18e8b9d2ff3d6c32f152b6d799d27eb4ffa /templates/feed.xml | |
first commit
Diffstat (limited to 'templates/feed.xml')
| -rw-r--r-- | templates/feed.xml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100644 index 0000000..8f7e3de --- /dev/null +++ b/templates/feed.xml @@ -0,0 +1,39 @@ +<?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="{{ config.extra.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 %} + <item> + <title>{{ page.title }}</title> + <pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate> + <author>{{ config.extra.email }} ({{ config.author }})</author> + <link>{{ page.permalink | escape_xml | safe }}</link> + <guid>{{ page.permalink | escape_xml | safe }}</guid> + <description xml:base="{{ page.permalink | escape_xml | safe }}"> + {% if page.summary %} + {{ page.summary }} + {% else %} + <![CDATA[{{ page.content | safe}}<p><a href="mailto:{{ config.extra.email }}?subject=Post Reply: {{ page.title }}">Reply to this post via email</a></p>]]> + {% endif %} + </description> + </item> + {%- endfor %} + </channel> +</rss> + |