aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-06-10 12:39:02 +0100
committerLouise Crow <louise.crow@gmail.com>2014-06-17 11:38:13 +0100
commita20b1a6ff87bb120239b9f04ac026e5b8f9054b8 (patch)
tree4bd51d2afe68f97e313c814de615771d9448d10e
parent26540c72213afcc4816f1d9901725134b1525270 (diff)
Add an Atom feed.
-rw-r--r--_config.yml2
-rw-r--r--atom.xml26
m---------theme0
3 files changed, 27 insertions, 1 deletions
diff --git a/_config.yml b/_config.yml
index e5c7f2c8d..479f3901f 100644
--- a/_config.yml
+++ b/_config.yml
@@ -3,4 +3,4 @@ pygments: true
baseurl: /
permalink: pretty
markdown: kramdown
-
+url: http://code.alaveteli.org
diff --git a/atom.xml b/atom.xml
new file mode 100644
index 000000000..05aced830
--- /dev/null
+++ b/atom.xml
@@ -0,0 +1,26 @@
+---
+layout: nil
+---
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>Alaveteli.org</title>
+ <link href="{{ site.url }}/atom.xml" rel="self"/>
+ <link href="{{ site.url }}/"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>{{ site.url }}</id>
+ <author>
+ <name>mySociety</name>
+ </author>
+
+ {% for post in site.posts %}
+ <entry>
+ <title>{{ post.title }}</title>
+ <link href="{{ site.url }}{{ post.url }}"/>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <id>{{ site.url }}{{ post.id }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+
+</feed>
diff --git a/theme b/theme
-Subproject 2253b0f82ab9f0e670109826c5326f638952b66
+Subproject 6f3cee1f77831ba0c9d5bd5b6a10dc696c3267e