hugosoucycc

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

commit de014c6bf497adb9aca56e48bdd26b536c44aa51
parent 160943228a1028595894fe92a89eab9f76cd5698
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Sun,  6 Nov 2016 20:06:54 -0500

Add a permalink.

Diffstat:
Mfunctions/create-html-pages | 2+-
Mtemplates/mustache/default.mustache | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/functions/create-html-pages b/functions/create-html-pages @@ -48,7 +48,7 @@ create_html_pages () { pandoc -s "$markdown" \ --template="$TPL_PANDOC_PATH/default.html" \ --variable=modified:"$(date -r "$markdown" +%Y-%m-%dT%H:%M:%S)" \ - --variable=permalink:"$BASE_URL/${page_path%.*}" \ + --variable=permalink:"$BASE_URL/${page_path%.*}.html" \ -o "$(dirname "$markdown")/${outputname%.*}.html" fi diff --git a/templates/mustache/default.mustache b/templates/mustache/default.mustache @@ -15,7 +15,7 @@ <address class="layout"> <hr/> - <p><a class="note__link u-url u-uid u-syndication" href="#" rel="bookmark">#</a> Créé à {{ SITE_AUTHOR_LOCALITY }} le <time class="dt-published" $if(datetime)$datetime="$date$T$datetime$"$endif$>$date$</time> par <a class="p-author author" href="{{ BASE_URL }}#hs" rel="author"><i>{{ SITE_AUTHOR }}</i></a>. $if(modified)$Modifié le <time class="dt-updated">$modified$</time>.$endif$ + <p><a class="note__link u-url u-uid u-syndication" href="$permalink$" rel="bookmark">#</a> Créé à {{ SITE_AUTHOR_LOCALITY }} le <time class="dt-published" $if(datetime)$datetime="$date$T$datetime$"$endif$>$date$</time> par <a class="p-author author" href="{{ BASE_URL }}#hs" rel="author"><i>{{ SITE_AUTHOR }}</i></a>. $if(modified)$Modifié le <time class="dt-updated">$modified$</time>.$endif$ </p> </address> </footer>