veilid-dot-com/themes/veilid/layouts/_default/list.rss.twig
2023-08-15 15:25:21 -04:00

24 lines
991 B
Twig

{% extends 'extended/feed.twig' %}
{% block feed %}
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="{{ url('xsl/rss', {'language': lang}) }}" media="all"?>
<rss version="2.0">
<channel>
<title>{{ title|e }}</title>
<description><![CDATA[{{ site.description }}]]></description>
<lastBuildDate>{{ date|date('c') }}</lastBuildDate>
<link href="{{ url(page, {canonical: true, format: 'rss'}) }}" rel="self" type="application/rss+xml" />
<link href="{{ url(page, {canonical: true, format: 'html'}) }}" rel="alternate" type="text/html" />
{%- for p in pages|sort_by_date ~%}
<item>
<guid>{{ url(p, {canonical: true}) }}</guid>
<title>{{ p.title|e }}</title>
<description><![CDATA[{{ p.content }}]]></description>
<pubDate>{{ p.date|date('c') }}</pubDate>
<link href="{{ url(p, {canonical: true}) }}" rel="alternate" type="text/html" />
</item>
{%- endfor ~%}
</channel>
</rss>
{% endblock feed %}