Use RSS instead

This commit is contained in:
Oliver Davies 2015-04-17 17:54:48 +01:00
parent ad5d711760
commit 4baaa95d22

View file

@ -1,27 +1,19 @@
--- ---
generator: [posts_tag_index] generator: [posts_tag_index]
--- ---
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom"> <rss version="2.0">
<title><![CDATA[{{ site.title }}]]></title> <channel>
<link href="{{ site.url }}{{ page.url }}" rel="self"/> <title>{{ site.title }}</title>
<link href="{{ site.url }}/"/> <link>{{ site.url }}</link>
<updated>{{ site.calculated_date | date('c') }}</updated> {% if site.description %}<description>{{ site.description|raw }}</description>{% endif %}
<id>{{ site.url }}/</id>
{% if site.author or site.email %}
<author>
{% if site.author %}<name><![CDATA[{{ site.author }}]]></name>{% endif %}
{% if site.email %}<email><![CDATA[{{ site.email }}]]></email>{% endif %}
</author>
{% endif %}
<generator uri="http://sculpin.io/">Sculpin</generator>
{% for post in page.tag_posts|slice(0, 10) %} {% for post in page.tag_posts|slice(0, 10) %}
<entry> <item>
<title type="html"><![CDATA[{{ post.title }}]]></title> <title>{{ post.title }}</title>
<link href="{{ site.url }}{{ post.url }}"/> <link>{{ site.url }}{{ post.url }}</link>
<updated>{{ post.date|date('c') }}</updated> <pubDate>{{ post.date|date('r') }}</pubDate>
<id>{{ site.url }}{{ post.url }}</id> {% if post.description %}<description>{{ post.description|raw }}</description>{% endif %}
<content type="html"><![CDATA[{{ post.blocks.content|raw }}]]></content> </item>
</entry>
{% endfor %} {% endfor %}
</feed> </channel>
</rss>