hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit 8938af293eddda60da00654248c94debec549fe2
parent 141dc311e8f9b20f5fbd1a2189a8b40844e9f756
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sat, 11 Mar 2017 16:20:23 -0500

Do some modifications to have a valid feed.

Diffstat:
Mcontent/file/curriculum-vitae.md | 3++-
Mcontent/file/pgp.md | 3++-
Mcontent/note/2017/01/lemprise-de-wallstreet-sur-trump.md | 2+-
Mtemplates/mustache/feed/feed-entry.mustache | 9+++------
Mtemplates/mustache/feed/feed.mustache | 12+++++++++---
5 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/content/file/curriculum-vitae.md b/content/file/curriculum-vitae.md @@ -1,6 +1,7 @@ --- title: Curriculum vitae -date: 0000-00-00 +date: 2014-01-01 +datetime: 00:00:00 template: curriculum-vitae --- diff --git a/content/file/pgp.md b/content/file/pgp.md @@ -1,6 +1,7 @@ --- title: Clé publique PGP -date: 0000-00-00 +date: 2014-01-02 +datetime: 00:00:00 template: default --- diff --git a/content/note/2017/01/lemprise-de-wallstreet-sur-trump.md b/content/note/2017/01/lemprise-de-wallstreet-sur-trump.md @@ -1,7 +1,7 @@ --- title: L'emprise de WallStreet sur Trump date: 2017-01-09 -datetime: 13:39:01 +datetime: 13:39:00 template: note bridgy: true keywords: diff --git a/templates/mustache/feed/feed-entry.mustache b/templates/mustache/feed/feed-entry.mustache @@ -1,9 +1,6 @@ <entry> <title>{{ field_title }}</title> - <link href="{{ field_permalink }}" /> - <updated>{{ field_date}}T{{ field_datetime }}</updated> - <author> - <name>{{ SITE_AUTHOR }}</name> - <email>{{ SITE_AUTHOR_EMAIL }}</email> - </author> + <id>{{ field_id }}</id> + <link href="{{ field_permalink }}" hreflang="{{ SITE_LANGUAGE }}" rel="alternate" /> + <updated>{{ field_date}}T{{ field_datetime }}Z</updated> </entry> diff --git a/templates/mustache/feed/feed.mustache b/templates/mustache/feed/feed.mustache @@ -2,8 +2,14 @@ <feed xmlns="http://www.w3.org/2005/Atom"> <title>Flux Atom de {{ SITE_DOMAINNAME }}</title> <subtitle>{{ SITE_DESCRIPTION }}</subtitle> - <link href="{{ SITE_URL }}/feed.atom.xml" rel="self" /> - <link href="{{ SITE_URL }}" /> - <updated>{{ NOW_DATE }}T{{ NOW_DATETIME }}</updated> + <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" /> + <updated>{{ NOW_DATE }}T{{ NOW_DATETIME }}Z</updated> + <author> + <name>{{ SITE_AUTHOR }}</name> + <email>{{ SITE_AUTHOR_EMAIL }}</email> + </author> + $body$ </feed>