Permalink
Browse files

Atom feed for blog

  • Loading branch information...
1 parent 7be4adb commit bfbd70a8645ddc18b4f0ba27d5e852b08ded2980 @rtomayko rtomayko committed Jan 22, 2009
Showing with 27 additions and 0 deletions.
  1. +1 −0 _layouts/default.html
  2. +26 −0 feed.xml
View
@@ -4,6 +4,7 @@
<title>{{ page.title }}</title>
<link rel='stylesheet' href='/css/legend.css' type='text/css'>
<link rel='shortcut icon' href='/images/favicon.ico'>
+ <link rel='alternate' href='http://sinatra.github.com/feed.xml' type='application/atom+xml' title='Sinatra Blog'>
</head>
<body id='{{ page.id }}'>
<div id='wrap'>
View
@@ -0,0 +1,26 @@
+---
+layout: nil
+---
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>Sinatra</title>
+ <link href="http://sinatra.guthub.com/feed.xml" rel="self"/>
+ <link href="http://sinatra.github.com/"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>http://sinatrarb.com/</id>
+
+ {% for post in site.posts %}
+ <entry>
+ <title>{{ post.title }}</title>
+ <link href="http://sinatra.github.com{{ post.url }}"/>
+ <published>{{ post.date | date_to_xmlschema }}</published>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <author>
+ <name>{{ post.author }}</name>
+ <uri>{{ post.author_url }}</uri>
+ </author>
+ <id>http://sinatrarb.com{{ post.id }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+</feed>

0 comments on commit bfbd70a

Please sign in to comment.