the home site for me: also iteration 3 or 4 of my site

feat: add full rss

dunkirk.sh 3d7baa57 82db0f53

verified
+73
+30
templates/atom.xml
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}"> 3 + <title>{{ config.title }}{% if section.title %} – {{ section.title }}{% endif %}</title> 4 + <link rel="self" type="application/atom+xml" href="{{ feed_url | safe }}"/> 5 + <link rel="alternate" type="text/html" href="{% if section %}{{ section.permalink | safe }}{% else %}{{ config.base_url | safe }}{% endif %}"/> 6 + <id>{% if section %}{{ section.permalink | safe }}{% else %}{{ config.base_url | safe }}{% endif %}</id> 7 + <updated>{{ last_updated | date(format="%+") }}</updated> 8 + <subtitle>{{ config.description }}</subtitle> 9 + {% if config.extra.author %} 10 + <author><name>{{ config.extra.author }}</name></author> 11 + {% endif %} 12 + {% for page in pages %} 13 + <entry> 14 + <title>{{ page.title }}</title> 15 + <link rel="alternate" type="text/html" href="{{ page.permalink | safe }}"/> 16 + <id>{{ page.permalink | safe }}</id> 17 + <published>{{ page.date | date(format="%+") }}</published> 18 + <updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated> 19 + {% if page.taxonomies.tags %} 20 + {% for tag in page.taxonomies.tags %} 21 + <category term="{{ tag }}"/> 22 + {% endfor %} 23 + {% endif %} 24 + {% if page.summary %} 25 + <summary type="html"><![CDATA[{{ page.summary | safe }}]]></summary> 26 + {% endif %} 27 + <content type="html"><![CDATA[{{ page.content | safe }}]]></content> 28 + </entry> 29 + {% endfor %} 30 + </feed>
+43
templates/rss.xml
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <rss version="2.0" 3 + xmlns:atom="http://www.w3.org/2005/Atom" 4 + xmlns:content="http://purl.org/rss/1.0/modules/content/" 5 + xmlns:dc="http://purl.org/dc/elements/1.1/" 6 + > 7 + <channel> 8 + <title>{{ config.title | escape_xml }}{% if section.title %} – {{ section.title | escape_xml }}{% endif %}</title> 9 + <link>{% if section %}{{ section.permalink | safe }}{% else %}{{ config.base_url | safe }}{% endif %}</link> 10 + <description>{{ config.description | default(value="") | escape_xml }}</description> 11 + <language>{{ lang }}</language> 12 + <generator>Zola</generator> 13 + <atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/> 14 + <lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S +0000") }}</lastBuildDate> 15 + {% for page in pages %} 16 + <item> 17 + <title>{{ page.title | escape_xml }}</title> 18 + <link>{{ page.permalink | safe }}</link> 19 + <guid isPermaLink="true">{{ page.permalink | safe }}</guid> 20 + <pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S +0000") }}</pubDate> 21 + {% if page.updated %} 22 + <dc:date>{{ page.updated | date(format="%Y-%m-%dT%H:%M:%SZ") }}</dc:date> 23 + {% endif %} 24 + {% if config.extra.author %} 25 + <dc:creator>{{ config.extra.author | escape_xml }}</dc:creator> 26 + {% endif %} 27 + {% if page.taxonomies.tags %} 28 + {% for tag in page.taxonomies.tags %} 29 + <category>{{ tag | escape_xml }}</category> 30 + {% endfor %} 31 + {% endif %} 32 + <description> 33 + {% if page.summary %} 34 + {{ page.summary | escape_xml }} 35 + {% else %} 36 + {{ page.content | truncate(length=500) | striptags | escape_xml }} 37 + {% endif %} 38 + </description> 39 + <content:encoded><![CDATA[{{ page.content | safe }}]]></content:encoded> 40 + </item> 41 + {% endfor %} 42 + </channel> 43 + </rss>