Skip to content

Commit

Permalink
Add a RSS feed at /feed.xml.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmazza committed Jun 25, 2012
1 parent 4e1c3c0 commit 37e7639
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions _layouts/main.html
Expand Up @@ -4,6 +4,7 @@
<meta charset='utf-8'> <meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=640" /> <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/core.css" media="screen"/>
<link rel="stylesheet" href="/stylesheets/mobile.css" media="handheld, only screen and (max-device-width:640px)"/> <link rel="stylesheet" href="/stylesheets/mobile.css" media="handheld, only screen and (max-device-width:640px)"/>
Expand Down
21 changes: 21 additions & 0 deletions feed.xml
@@ -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.