Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Atom feed for blog

  • Loading branch information...
commit bfbd70a8645ddc18b4f0ba27d5e852b08ded2980 1 parent 7be4adb
Ryan Tomayko authored January 22, 2009
1  _layouts/default.html
@@ -4,6 +4,7 @@
4 4
   <title>{{ page.title }}</title>
5 5
   <link rel='stylesheet' href='/css/legend.css' type='text/css'>
6 6
   <link rel='shortcut icon' href='/images/favicon.ico'>
  7
+  <link rel='alternate' href='http://sinatra.github.com/feed.xml' type='application/atom+xml' title='Sinatra Blog'>
7 8
 </head>
8 9
 <body id='{{ page.id }}'>
9 10
 <div id='wrap'>
26  feed.xml
... ...
@@ -0,0 +1,26 @@
  1
+---
  2
+layout: nil
  3
+---
  4
+<?xml version="1.0" encoding="utf-8"?>
  5
+<feed xmlns="http://www.w3.org/2005/Atom">
  6
+ <title>Sinatra</title>
  7
+ <link href="http://sinatra.guthub.com/feed.xml" rel="self"/>
  8
+ <link href="http://sinatra.github.com/"/>
  9
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
  10
+ <id>http://sinatrarb.com/</id>
  11
+
  12
+ {% for post in site.posts %}
  13
+ <entry>
  14
+   <title>{{ post.title }}</title>
  15
+   <link href="http://sinatra.github.com{{ post.url }}"/>
  16
+   <published>{{ post.date | date_to_xmlschema }}</published>
  17
+   <updated>{{ post.date | date_to_xmlschema }}</updated>
  18
+   <author>
  19
+     <name>{{ post.author }}</name>
  20
+     <uri>{{ post.author_url }}</uri>
  21
+   </author>
  22
+   <id>http://sinatrarb.com{{ post.id }}</id>
  23
+   <content type="html">{{ post.content | xml_escape }}</content>
  24
+ </entry>
  25
+ {% endfor %}
  26
+</feed>

0 notes on commit bfbd70a

Please sign in to comment.
Something went wrong with that request. Please try again.