Permalink
Browse files

add atom feed

  • Loading branch information...
1 parent adfc43e commit 60609393ffcc4328d59e7440a5e3a51302f66921 @Hanse Hanse committed Mar 6, 2014
Showing with 32 additions and 0 deletions.
  1. +32 −0 atom.xml
View
@@ -0,0 +1,32 @@
+---
+layout: nil
+---
+<?xml version="1.0"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>Webkom utviklerblogg</title>
+ <link href="http://webkom.abakus.no/"/>
+ <link type="application/atom+xml" rel="self" href="http://webkom.abakus.no/atom.xml"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>http://webkom.abakus.no</id>
+ <author>
+ <name>webkom</name>
+ <email>webkom@abakus.no</email>
+ </author>
+
+ {% for post in site.posts %}
+ <entry>
+ <id>http://webkom.abakus.no/{{ post.id }}</id>
+ <link type="text/html" rel="alternate" href="http://example.com{{ post.url }}"/>
+ <title>{{ post.title }}</title>
+ <published>{{ post.date | date_to_xmlschema }}</published>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <author>
+ <name>{{ post.author }}</name>
+ <uri></uri>
+ </author>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+
+</feed>

0 comments on commit 6060939

Please sign in to comment.