ljsdev-ssg

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

commit 3beb258dbc221803b44139e2a52660e01fbb6106
parent 75399ac00a4db71d003a51c4e8a9033d234fbfe1
Author: Leon <leon@wp2static.com>
Date:   Mon, 19 Aug 2019 09:08:11 +0200

use html file links

Diffstat:
Mgenerate-article-list.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generate-article-list.sh b/generate-article-list.sh @@ -4,7 +4,7 @@ echo "<ul>" >> dst/index.html for file in src/*.html; do - article=`ls "$file" | sed 's|^src/||' | sed 's|\.html$||'`; + article=`ls "$file" | sed 's|^src/||'`; title=`head -n 1 "$file" | sed -e 's/<h1>\(.*\)<\/h1>/\1/'` echo "<li><a href=\"$article\">$title</a></li>" >> dst/index.html; done