summaryrefslogtreecommitdiff
path: root/data/templates/atom.xml
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-08 21:42:56 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-08 21:42:56 +0100
commit45459c3a2086aa47f35b90ecc5e658fdc72e7982 (patch)
tree2f0598c3aea058ebff9029dd8b55f1ec9907c36e /data/templates/atom.xml
parent64b640f97d00c119ef4ed4c8ccf8e588226bfcad (diff)
downloadhakyll-45459c3a2086aa47f35b90ecc5e658fdc72e7982.tar.gz
Added renderAtom, feeds now validate.
Diffstat (limited to 'data/templates/atom.xml')
-rw-r--r--data/templates/atom.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/templates/atom.xml b/data/templates/atom.xml
new file mode 100644
index 0000000..578f54f
--- /dev/null
+++ b/data/templates/atom.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>$title</title>
+ <link href="$absolute/$url" rel="self" />
+ <link href="$absolute" />
+ <!-- We use the link as id. -->
+ <id>$absolute/$url</id>
+ <author>
+ <name>$authorName</name>
+ </author>
+ <updated>$timestamp</updated>
+ $body
+</feed>