ljsdev-ssg

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

commit e050f652aae026ec5f695d084cba34fb6f1245b0
parent 85a2f77ef5b3ccec225dae9336611475d8203a60
Author: Leon <leon@wp2static.com>
Date:   Tue, 20 Aug 2019 01:11:34 +0200

fix links in generator

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

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