rss feed from files

This commit is contained in:
Michael Murtaugh
2016-01-14 17:57:41 +01:00
parent 62f95c6c78
commit 3ee4b8f77c
2 changed files with 66 additions and 16 deletions
+7 -8
View File
@@ -10,7 +10,7 @@
<channel>
<title>{{title}}</title>
<atom:link href="{{feedurl}}" rel="self" type="application/rss+xml" />
<link>{{padurl}}</link>
<link>{{siteurl}}</link>
<description>{{description}}</description>
<lastBuildDate>{{utcnow}}</lastBuildDate>
<language>{{language}}</language>
@@ -21,14 +21,13 @@
{% for p in pads %}
<item>
<title>{{p.pad}}</title>
<link>{{p.versions[0].url}}</link>
<link>{{p.link}}</link>
<pubDate>{{p.lastedited_822}}</pubDate>
<dc:creator><![CDATA[-]]></dc:creator>
<category><![CDATA[-]]></category>
<guid isPermaLink="false">{{p.versions[0].url}}</guid>
<description><![CDATA[{{p.description}}]]></description>
<content:encoded><![CDATA[{{p.content}}]]></content:encoded>
<guid isPermaLink="false">{{p.link}}</guid>
<description><![CDATA[{{p.text|excerpt(100)}}]]></description>
{% if content %}<content:encoded><![CDATA[{{p.text}}]]></content:encoded>{% endif %}
</item>
{% endfor %}
</channel>
</channel>
</rss>