fakestache-ssg

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

commit 8f82d8cf9255138990a53c8ae12aedf081a98de2
parent 8a8ab2cab19d2a7d8b45549069785ddd49b717a7
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Tue,  8 Nov 2016 16:36:02 -0500

Simplify the creation of the flat database.

Diffstat:
Mfunctions/create-html-pages | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/functions/create-html-pages b/functions/create-html-pages @@ -53,11 +53,7 @@ create_html_pages () { fi echo "$config_date|$config_datetime|$BASE_URL/${page_path%.*}.html|$config_title" - done > fakestache.tmp.db + done | sort -nr -o "$FAKESTACHE_PATH"/"$DB" - sort -nr fakestache.tmp.db > "$FAKESTACHE_PATH"/"$DB" - - rm fakestache.tmp.db - move_html_to_publichtml }