add Atom feed

This commit is contained in:
Adrian Sampson 2012-08-01 13:50:31 -07:00
parent bfc1481e10
commit cc8328d6a7

27
blog/atom.xml Normal file
View file

@ -0,0 +1,27 @@
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>The beets blog.</title>
<link href="{{ site.url }}/blog/" />
<link href="{{ site.url }}/blog/atom.xml" rel="self" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/blog/</id>
<author>
<name>Adrian Sampson</name>
<email>adrian@radbox.org</email>
</author>
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="http://{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{site.url }}{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>