Skip to content

Commit

Permalink
Add atom feed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsese committed Oct 2, 2014
1 parent f9ff741 commit 79a8555
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions feed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.url }}{{ post.url }}</link>
</item>
{% endfor %}
</channel>
</rss>

0 comments on commit 79a8555

Please sign in to comment.