hugo.soucy.cc

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

commit 862b0cb3891ee571172e84af7589b0040f9fc0c0
parent f21829f8ff9292a31c71b36882e96c94d858750b
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Thu,  8 Feb 2018 13:35:19 -0500

Add permalink and shortlink blocs.

Diffstat:
Mtemplates/curriculum-vitae.mustache | 12+++++++++++-
Mtemplates/default.mustache | 14+++++++++++---
2 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/templates/curriculum-vitae.mustache b/templates/curriculum-vitae.mustache @@ -18,7 +18,17 @@ </p> <p> - <a href="{{ permalink }}">#</a> + {{# permalink }} + <a class="u-url u-uid u-syndication bookmark" + href="{{{ permalink }}}" + rel="bookmark">#</a> + {{/ permalink }} + + {{# shortlink }} + (<a href="{{{ site.url }}}/{{{ shortlink }}}" + type="text/html" + rel="shortlink">{{{ shortlink }}}</a>) + {{/ shortlink }} Créé à {{ site.author.locality }} le <time datetime="{{ date }}T{{ datetime }}">{{ date }}</time> par diff --git a/templates/default.mustache b/templates/default.mustache @@ -12,12 +12,20 @@ <address class="layout"> <hr/> <p> - <a class="u-url u-uid u-syndication" href="#" rel="bookmark">#</a> + {{# permalink }} + <a class="u-url u-uid u-syndication bookmark" + href="{{{ permalink }}}" + rel="bookmark">#</a> + {{/ permalink }} - Créé à {{ site.author.locality }} le <time class="dt-published" datetime="{{ date }}T{{ datetime }}">{{ date }}</time> par + {{# shortlink }} + (<a href="{{{ site.url }}}/{{{ shortlink }}}" + type="text/html" + rel="shortlink">{{{ shortlink }}}</a>) + {{/ shortlink }} + Créé à {{ site.author.locality }} le <time class="dt-published" datetime="{{ date }}T{{ datetime }}">{{ date }}</time> par <a class="p-author author" href="{{{ site.baseurl }}}#hs" rel="author"><i>{{ site.author.name }}</i></a>. - Modifié le <time class="dt-updated">{{ updated }}</time>. </p> </address>