ljsdev-ssg

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ae7c8b5c6c3fcbf831e21de14c42259815582374
parent a79a0261e51b04c17e689fd7ef379ce4db2cf171
Author: Leon <leon@wp2static.com>
Date:   Tue, 20 Aug 2019 01:51:12 +0200

verbose build output

Diffstat:
Mgenerate-article-list.sh | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/generate-article-list.sh b/generate-article-list.sh @@ -1,6 +1,6 @@ #!/bin/sh -# build blog index +echo "Building blog index" echo "<ul>" >> dst/blog.html for file in src/blog/*.html; @@ -12,7 +12,7 @@ done echo "</ul>" >> dst/blog.html -# build essays index +echo "Building essays index" echo "<ul>" >> dst/essays.html for file in src/essays/*.html; @@ -24,7 +24,7 @@ done echo "</ul>" >> dst/essays.html -# build dev-notes index +echo "Building dev-notes index" echo "<ul>" >> dst/dev-notes.html for file in src/dev-notes/*.html; @@ -36,7 +36,8 @@ done echo "</ul>" >> dst/dev-notes.html -# minify HTML +echo "Minifying HTML..." + for file in ./{dst/,dst/blog/,dst/essays/,dst/dev-notes/}*.html; do cat $file | tr "\n" " " > "$file.concat"; @@ -50,7 +51,7 @@ do echo "<li><a href=\"dev-notes/$article\">$title</a></li>" >> dst/dev-notes.html; done -# generate repo HTML at /src +echo "Generating browsable source code..." cd /var/www/ljsdevtest.ljs.dev/htdocs/src/ stagit /home/git/ljsdev-ssg.git cp -f log.html index.html