hugosoucycc

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

commit 8c52ee579c91cfcfe90de2608919dc10a519be0f
parent a7e6917a4cdba77d5dba83b22c2e13130ad29931
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Tue,  8 Nov 2016 13:59:36 -0500

Simplify the outputting of the database.

Diffstat:
Mfunctions/create-html-pages | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/functions/create-html-pages b/functions/create-html-pages @@ -31,7 +31,7 @@ create_html_pages () { # Get the value of the template config templatename=$config_template - + # Get the relative path of the markdown file page_path="$(realpath --relative-to=$CONTENT_PATH $markdown)" @@ -51,12 +51,8 @@ create_html_pages () { -o "$(dirname "$markdown")/${outputname%.*}.html" fi - echo "$config_date|$config_datetime|$BASE_URL/${page_path%.*}.html|$config_title" - done > fakestache.tmp.db - - sort -nr fakestache.tmp.db > "$FAKESTACHE_PATH"/"$DB" + echo "$config_date|$config_datetime|$BASE_URL/${page_path%.*}.html|$config_title" + done | sort -nr -o "$FAKESTACHE_PATH"/"$DB" - rm fakestache.tmp.db - move_html_to_publichtml }