hugo.soucy.cc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator (Ferron).
Log | Files | Refs

commit 015e944018a5bd012da83f84cdc943e7730b7e7e
parent 94b5946908f5ae4e3c1822427f51730b546f1488
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Fri, 26 Jan 2018 12:17:57 -0500

Add a rss 2 template.

Diffstat:
Atemplates/rss2.mustache | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/templates/rss2.mustache b/templates/rss2.mustache @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rss version="2.0"> + <channel> + <title>Flux RSS 2 de {{{ SITE.DOMAINNAME }}}</title> + <description>{{{ SITE.METAS.DESCRIPTION }}}</description> + <lastBuildDate>{{{ lastupdate }}}Z</lastBuildDate> + <link>{{{ SITE.URL }}}</link> + + {{# entries }} + <item> + <!-- <title></title> --> + <description>{{ content }}</description> + <pubDate>{{ updated }}Z</pubDate> + <link>{{{ permalink }}}</link> + </item> + {{/ entries }} + </channel> +</rss>