29 lines
1.4 KiB
XML
29 lines
1.4 KiB
XML
{% import "post_macros.html" as post_macros %}
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
|
<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>{{ last_build_date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
|
|
{% for page in pages %}
|
|
<item>
|
|
<title>{{ page.title }} | {{ config.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.descrition %}
|
|
{{post_macros::polish(content=page.description)}}
|
|
{% else %}
|
|
{{ post_macros::polish(content=page.description)}}
|
|
{% endif %}</description>
|
|
<content:encoded>{{ page.content }}</content:encoded>
|
|
</item>
|
|
{% endfor %}
|
|
</channel>
|
|
</rss>
|