048949ea31
The variable name matched the RSS tag it ended up in, but was misleading about what it actually was—because if you actually want “last build date”, you should use `now()`. (Due to the potential for edits, I think that either there should be an official `updated` field on pages, or that these templates should use `now()`.)
22 lines
1 KiB
XML
22 lines
1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
|
<channel>
|
|
<title>{{ config.title }}</title>
|
|
<link>{{ config.base_url | escape_xml | safe }}</link>
|
|
<description>{{ config.description }}</description>
|
|
<generator>Zola</generator>
|
|
<language>{{ config.default_language }}</language>
|
|
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
|
|
<lastBuildDate>{{ latest_date | 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>
|
|
<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>
|
|
{%- endfor %}
|
|
</channel>
|
|
</rss>
|