Skip to content

Commit

Permalink
adding atom.xml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Upadhyay committed Sep 5, 2013
1 parent 9c5f522 commit f651055
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions atom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

<title>{{ settings.site.title }}</title>
<link href="{{ settings.site.production_url }}/atom.xml" rel="self"/>
<link href="{{ settings.site.production_url }}/"/>
<id>{{ settings.site.production_url }}/</id>
<updated>{% now "Y-m-d\TH:i:s\Z" %}</updated>
<author>
<name>{{ settings.author.name }}</name>
<email>{{ settings.author.email }}</email>
</author>

{% for post in posts|slice:":10" %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ settings.site.production_url }}{{ post.url }}"/>
<updated>{{ post.date|date:"Y-m-d\TH:i:s\Z" }}</updated>
<id>{{ settings.site.production_url }}{{ post.url }}</id>
<content type="html">{{ post.body|md|force_escape }}</content>
</entry>
{% endfor %}
</feed>

0 comments on commit f651055

Please sign in to comment.