fakestache-ssg

[Archived] A static site generator in Bash 4.
Log | Files | Refs | Submodules | README

commit 6bdf22d72d9d8954ec2f14c7d04dfe3006d9044d
parent aedec429bd6b48637ea09893b7c6d991d6b0b3b1
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Sat,  4 Mar 2017 07:48:09 -0500

Add the `.html` extension to the permalink variable.

Diffstat:
Mfunctions/create-html-pages | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/functions/create-html-pages b/functions/create-html-pages @@ -40,7 +40,7 @@ create_html_pages () { pandoc -s "$markdown" \ --template="$TPL_PANDOC_PATH/${templatename}.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" else @@ -48,7 +48,7 @@ create_html_pages () { --template="$TPL_PANDOC_PATH/default.html" \ --variable=template:"default" \ --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