Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@lucasmazza

Closes #5, I've based the template from http://warpsire.com.

I guess that an icon or link on the index page for the feed would be a nice addition. If there's anything else please ping me so I can push another commit for it.

@theophani theophani merged commit ada992d into janl:gh-pages
@theophani
Collaborator

YES! thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 25, 2012
  1. @lucasmazza
This page is out of date. Refresh to see the latest.
Showing with 22 additions and 0 deletions.
  1. +1 −0  _layouts/main.html
  2. +21 −0 feed.xml
View
1  _layouts/main.html
@@ -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
21 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>
Something went wrong with that request. Please try again.