hugo.soucy.cc

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

commit 310119fe1f9c22ff6c1420ad6e6b8dda02a33d33
parent 77ba80d59415a2b22a99e7cb22d63cea67f1e0d6
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue,  2 Oct 2018 13:49:29 -0400

Put feeds templates in a sub directory.

Diffstat:
Atemplates/feed/atom.mustache | 30++++++++++++++++++++++++++++++
Atemplates/feed/rss2.mustache | 18++++++++++++++++++
2 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/templates/feed/atom.mustache b/templates/feed/atom.mustache @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <title>Flux Atom de {{{ site.domainname }}}</title> + <subtitle>{{{ site.metas.description }}}</subtitle> + <id>tag:{{{ site.domainname }}},{{{ site.created }}}:{{{ site.author.nickname }}}</id> + <link href="{{{ site.url }}}/feed.atom.xml" rel="self" type="application/atom+xml"/> + <!-- PubSubHubbub Discovery --> + <link href="https://bridgy-fed.superfeedr.com/" rel="hub" /> + <link href="https://pubsubhubbub.superfeedr.com" rel="hub" /> + <!-- End Of PubSubHubbub Discovery --> + <link href="{{{ site.url }}}" rel="alternate" /> + <updated>{{{ lastupdate }}}Z</updated> + <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>{{ updated }}Z</updated> + <content type="html" xml:base="{{{ permalink }}}"> + {{ content }} + </content> + </entry> + {{/ entries }} +</feed> diff --git a/templates/feed/rss2.mustache b/templates/feed/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>