deblan.io-murph/templates/page/rss/default.xml.twig
2021-04-12 22:12:24 +02:00

26 lines
1.1 KiB
Twig

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{{ _page.title.value }}</title>
<link>{{ _page.link.value }}</link>
<description>{{ _page.description.value }}</description>
<language>{{ _page.language.value }}</language>
{% for item in items %}
<item>
<title><![CDATA[{{ item.title|raw }}]]></title>
<link href="{{ item.link }}" type="text/html" />
{% if item.linkGemini is defined %}
<link href="{{ item.linkGemini }}" type="text/gemini" />
{% endif %}
<description><![CDATA[{{ item.description|raw }}]]></description>
<guid isPermaLink="false">{{ item.guid }}</guid>
<pubDate>{{ item.date|date('r') }}</pubDate>
{% for category in item.categories %}
<category><![CDATA[{{ category }}]]></category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss>