commit 36c3416cb5959f4cce5f9f9e0b80d28acc92ef85 parent 0042e7048de226b3b126eec91a4ffa959ec4305d Author: Frederic Cambus <fred@statdns.com> Date: Fri, 4 Mar 2016 23:17:38 +0100 Initial template for Atom feed Diffstat:
A | templates/atom.mustache | | | 36 | ++++++++++++++++++++++++++++++++++++ |
1 file changed, 36 insertions(+), 0 deletions(-)
diff --git a/templates/atom.mustache b/templates/atom.mustache @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <title><![CDATA[{{page.title}} - {{site.name}}]]></title> + <subtitle><![CDATA[{{site.description}}]]></subtitle> + + <link href="/atom.xml" rel="self"/> + <link href="{{{site.url}}}"/> + + <updated></updated> + <id>{{{site.url}}}</id> + + <author> + <name><![CDATA[{{site.author}}]]></name> + </author> + + <generator uri="http://www.cambus.net/motyl/">Motyl</generator> + + {{#site.posts}} + <entry> + <title><![CDATA[{{title}}]]></title> + <link href="{{{site.url}}}{{{url}}}"/> + <id>{{{url}}}</id> + <published></published> + <updated></updated> + <content type="html"><![CDATA[{{{content}}}]]></content> + <summary type="html"> + <![CDATA[{{description}}]]> + </summary> + + {{#categoryDisplay}} + <category term="{{category}}" scheme="{{{site.url}}}/categories/{{{url}}}"/> + {{/categoryDisplay}} + </entry> + {{/site.posts}} +</feed> +\ No newline at end of file