Permalink
Browse files

Add a RSS feed at `/feed.xml`.

  • Loading branch information...
1 parent 4e1c3c0 commit 37e7639dcc874fef654ed1cb8332d2c981975482 @lucasmazza lucasmazza committed Jun 25, 2012
Showing with 22 additions and 0 deletions.
  1. +1 −0 _layouts/main.html
  2. +21 −0 feed.xml
View
@@ -4,6 +4,7 @@
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=640" />
+ <link rel="alternate" type="application/rss+xml" title="We Are All Awesome! Feed" href="/feed.xml"/>
<link rel="stylesheet" href="/stylesheets/core.css" media="screen"/>
<link rel="stylesheet" href="/stylesheets/mobile.css" media="handheld, only screen and (max-device-width:640px)"/>
View
@@ -0,0 +1,21 @@
+---
+layout: nil
+---
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>We Are All Awesome!</title>
+ <link href="http://weareallaweso.me/" rel="self"/>
+ <link href="http://weareallaweso.me/"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>http://weareallaweso.me/</id>
+
+ {% for post in site.posts %}
+ <entry>
+ <title>{{ post.title | xml_escape }}</title>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <id>http://weareallaweso.me{{ post.url }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+</feed>

0 comments on commit 37e7639

Please sign in to comment.