summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Swanson <mdswanson@sep.com>2012-01-15 16:55:07 -0500
committerMatt Swanson <mdswanson@sep.com>2012-01-15 16:55:07 -0500
commit812e27bacbc2abf42e1faf8799570fb0e14b5cf6 (patch)
tree9cf3881531115f6963341eae7d8885b036872b15
parenta7608142e282230f3a1c7f7961231d427e9cf2b6 (diff)
Add Atom rss feeds
-rw-r--r--_config.yml1
-rw-r--r--atom.xml27
2 files changed, 28 insertions, 0 deletions
diff --git a/_config.yml b/_config.yml
index d3caf3f..9df5c66 100644
--- a/_config.yml
+++ b/_config.yml
@@ -7,6 +7,7 @@ var:
archive_path: /archive.html
categories_path : /categories.html
tags_path : /tags.html
+ rss_path: /atom.xml
production_url : http://username.github.com # or your custom domain name
title : Jekyll Boostrap
diff --git a/atom.xml b/atom.xml
new file mode 100644
index 0000000..b7fcffd
--- /dev/null
+++ b/atom.xml
@@ -0,0 +1,27 @@
+---
+layout: nil
+---
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>{{ site.title }}</title>
+ <link href="{{ site.production_url }}/atom.xml" rel="self"/>
+ <link href="{{ site.production_url }}"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>{{ site.production_url }}</id>
+ <author>
+ <name>{{ site.author.name }}</name>
+ <email>{{ site.author.email }}</email>
+ </author>
+
+ {% for post in site.posts %}
+ <entry>
+ <title>{{ post.title }}</title>
+ <link href="{{ site.production_url }}{{ post.url }}"/>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <id>h{{ site.production_url }}{{ post.id }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+
+</feed> \ No newline at end of file