blog/templates/rss.xml

27 lines
1 KiB
XML
Raw Normal View History

2019-03-28 01:04:55 +00:00
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>{{ config.title }}</title>
2020-02-18 01:04:27 +00:00
<link>{{ config.base_url | safe }}</link>
2019-03-28 01:04:55 +00:00
<description>{{ config.description }}</description>
<generator>zola</generator>
<language>{{ config.default_language }}</language>
2020-02-18 01:04:27 +00:00
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
2019-03-28 01:04:55 +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>
2020-02-18 01:04:27 +00:00
<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>
2019-03-28 01:04:55 +00:00
</item>
{% endfor %}
</channel>
</rss>