ferron

Ferron is a fast and simple static website generator made with Lua.
Log | Files | Refs | Submodules | README | LICENSE

commit 22cdb9a8e9a602fec13ff6e4a456fd6546999741
parent 6908b0fc548e23d1da8281c06e2fac16cc54feff
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 19 Nov 2017 16:15:33 -0500

Add a feed template.

Diffstat:
Asites/ferron-ssg.tld/templates/feed.mustache | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/sites/ferron-ssg.tld/templates/feed.mustache b/sites/ferron-ssg.tld/templates/feed.mustache @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <title>Flux Atom de {{{ SITE.DOMAINNAME }}}</title> + <subtitle>{{{ SITE.DESCRIPTION }}}</subtitle> + <id>tag:hugo.soucy.cc,2014-02-19:hs0ucy</id> + <link href="{{{ SITE.URL }}}/feed.atom.xml" rel="self" type="application/atom+xml"/> + <link href="{{{ SITE.URL }}}" rel="alternate" /> + <author> + <name>{{{ SITE.AUTHOR.NAME }}}</name> + <email>{{{ SITE.AUTHOR.EMAIL }}}</email> + <uri>{{{ SITE.AUTHOR.URI }}}</uri> + </author> + + {{# entries }} + <entry> + <title>{{{ title }}}</title> + <id>{{{ id }}}</id> + <link href="{{{ permalink }}}" hreflang="{{{ SITE.LANGUAGE }}}" rel="alternate" /> + <updated>{{{ date }}}T{{{ datetime }}}Z</updated> + </entry> + {{/ entries }} +</feed>