hugo.soucy.cc

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

commit 93698f30b4800d5d4156f8c0b5d67adb0b5ac3d0
parent 310119fe1f9c22ff6c1420ad6e6b8dda02a33d33
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue,  2 Oct 2018 15:42:47 -0400

Playing with `feed.makefeed`

Diffstat:
Msite-config.lua | 7++++++-
Dtemplates/feed.mustache | 30------------------------------
Dtemplates/rss2.mustache | 18------------------
3 files changed, 6 insertions(+), 49 deletions(-)

diff --git a/site-config.lua b/site-config.lua @@ -60,7 +60,12 @@ local siteconfig = { "image/jpeg", "image/png", "application/pdf", - } + }, + + -- feedtypes = { + -- "atom", + -- "rss2", + -- } } return siteconfig diff --git a/templates/feed.mustache b/templates/feed.mustache @@ -1,30 +0,0 @@ -<?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/rss2.mustache b/templates/rss2.mustache @@ -1,18 +0,0 @@ -<?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>