nasg/rss.html

54 lines
2 KiB
HTML
Raw Normal View History

2017-05-23 11:21:10 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
{%- if taxonomy.name -%}
{%- set title = taxonomy.name ~ ' | ' ~ site.title -%}
2017-05-23 11:21:10 +01:00
{%- else -%}
{%- set title = site.title -%}
2017-05-23 11:21:10 +01:00
{%- endif -%}
<channel>
<title>{{ title }}</title>
<atom:link href="{{ site.url}}{{ taxonomy.url }}feed/" rel="self" type="application/rss+xml" />
<link>{{ site.url }}{{ taxonomy.url }}feed/</link>
2017-05-23 11:21:10 +01:00
<description>{{ description }}</description>
<language>{{ site.lang }}</language>
<sy:updatePeriod>daily</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
{% if taxonomy.url|length > 0 %}
<!-- PubSubHubbub Discovery -->
<link rel="hub" href="{{ site.websuburl }}" xmlns="http://www.w3.org/2005/Atom" />
<link rel="self" href="{{ site.url }}{{ taxonomy.url }}feed/" xmlns="http://www.w3.org/2005/Atom" />
<!-- End Of PubSubHubbub Discovery -->
{% endif %}
2017-05-23 11:21:10 +01:00
{% for post in posts %}
<item>
<title>{% if post.title %}{{ post.title }}{% endif%}</title>
2017-06-03 12:07:38 +01:00
<link>{{ site.url }}/{{ post.slug }}/</link>
2017-05-23 11:21:10 +01:00
<pubDate>{{ post.published|date("%a, %d %b %Y %T %z") }}</pubDate>
<dc:creator><![CDATA[{{ post.author.name }}]]></dc:creator>
<guid isPermaLink="true">{{ site.url }}/{{ post.slug }}</guid>
<description><![CDATA[{{ post.summary }}]]></description>
<content:encoded><![CDATA[{{ post.html }}]]></content:encoded>
<language>{{ post.lang }}</language>
{% if post.tags %}
{% for tname in post.tags %}
<category domain="{{ site.url }}/tag/{{ tname|slugify }}"><![CDATA[{{ tname }}]]></category>
{% endfor %}
{% endif %}
{% if post.rssenclosure %}
<enclosure url="{{ post.rssenclosure.url }}" type="{{ post.rssenclosure.mime }}" length="{{ post.rssenclosure.size }}" />
{% endif %}
</item>
{% endfor %}
</channel>
</rss>