zola/components/templates/src/builtins/rss.xml

22 lines
1.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
2017-03-07 07:43:27 +00:00
<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>
2017-03-07 07:43:27 +00:00
<description>{{ config.description }}</description>
<generator>Zola</generator>
2018-01-16 12:49:49 +00:00
<language>{{ config.default_language }}</language>
2019-08-04 14:13:07 +00:00
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
2017-03-07 07:43:27 +00:00
<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 | escape_xml | safe }}</link>
<guid>{{ page.permalink | escape_xml | safe }}</guid>
<description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
2017-03-07 07:43:27 +00:00
</item>
{% endfor %}
</channel>
</rss>