blog/templates/rss.xml
2020-02-17 19:04:27 -06:00

26 lines
1 KiB
XML

<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>{{ config.title }}</title>
<link>{{ config.base_url | 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>{{ last_build_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 | safe }}</link>
<description>
{% if page.summary %}
{{ page.summary | safe }}
<a href="{{ page.permalink | safe }}#continue-reading">Continue reading...</a>
{% else %}
Read <a href="{{ page.permalink | safe }}">{{ page.title }}</a>.
{% endif %}
</description>
</item>
{% endfor %}
</channel>
</rss>