diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2011-03-15 16:01:00 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2011-03-15 16:01:00 +0100 |
commit | ad31dc08c8fa83904cf18c32e8d02c5a6591a5d8 (patch) | |
tree | ed21bebea6770a4c6232efcec5098667c7bbe263 /templates | |
parent | c63989699bbca26908c2efd7968f776800e75b36 (diff) |
Add news feed support.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/article_feed.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/article_feed.xml b/templates/article_feed.xml new file mode 100644 index 0000000..b284f45 --- /dev/null +++ b/templates/article_feed.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <title type="html">{title}</title> + <updated>{last-updated-date|html-iso-date}</updated> + <id>{global-id}</id> + <subtitle> + {subtitle} + </subtitle> + <author> + {.repeated section authors} + <name>{name}</name> + {.end} + </author> + <link rel="alternate" type="text/html" href="{base-uri|html-attr-value}"/> + <link rel="self" type="application/atom+xml" href="{feed-uri|html-attr-value}"/> + {.repeated section articles} + <entry> + <title type="html"> + {title} + </title> + <id>{global-id}</id> + <updated>{last-updated-date|html-iso-date}</updated> + <published>{publishing-date|html-iso-date}</published> + <link rel="alternate" type="text/html" href="{link|html-attr-value}"/> + {.section body} + <content type="xhtml" xml:lang="de" xml:base="{base-uri|html-attr-value}"> + <div xmlns="http://www.w3.org/1999/xhtml"> + {@} + </div> + </content> + {.end} + </entry> + {.end} +</feed> |