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> {% for post in page.tag_posts|slice(0, 10) %}
{% if site.author or site.email %} <item>
<author> <title>{{ post.title }}</title>
{% if site.author %}<name><![CDATA[{{ site.author }}]]></name>{% endif %} <link>{{ site.url }}{{ post.url }}</link>
{% if site.email %}<email><![CDATA[{{ site.email }}]]></email>{% endif %} <pubDate>{{ post.date|date('r') }}</pubDate>
</author> {% if post.description %}<description>{{ post.description|raw }}</description>{% endif %}
{% endif %} </item>
<generator uri="http://sculpin.io/">Sculpin</generator> {% endfor %}
{% for post in page.tag_posts|slice(0, 10) %} </channel>
<entry> </rss>
<title type="html"><![CDATA[{{ post.title }}]]></title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date|date('c') }}</updated>
<id>{{ site.url }}{{ post.url }}</id>
<content type="html"><![CDATA[{{ post.blocks.content|raw }}]]></content>
</entry>
{% endfor %}
</feed>