From 6a628110fef7c20e9c984287781c56b951f476b9 Mon Sep 17 00:00:00 2001 From: hitlerrip Date: Tue, 29 Jul 2025 10:57:22 +0200 Subject: article list improvements - styled article list - added dynamically generated article list to markdown index - (initial run.sh) --- build.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 19653ff..4e18dbe 100755 --- a/build.sh +++ b/build.sh @@ -84,9 +84,6 @@ for i in *.md; do if [ "$filename" == "index" ]; then echo "[build] skipping index file for later..." - - cp "$i" ../../web/articles/ - else mkdir -p ../../web/articles/"$filename"/ @@ -139,6 +136,14 @@ for i in *.md; do EOF + touch ../../tmp/articles/gen-articles-tmp-list.md + tee -a ../../tmp/articles/gen-articles-tmp-list.md > /dev/null << EOF + +## [$WEBMETA_TITLE]($filename) +###### \`$WEBMETA_DATE\` by $WEBMETA_AUTH +$WEBMETA_SUMMARY +EOF + touch ../../tmp/articles/gen-articles-tmp-rss.xml tee -a ../../tmp/articles/gen-articles-tmp-rss.xml > /dev/null << EOF @@ -165,6 +170,10 @@ cat ./con/header.html \ ./con/footer.html \ > ./web/articles/index.html +cat ./src/articles/index.md \ + ./tmp/articles/gen-articles-tmp-list.md \ + > ./web/articles/index.md + cat ./con/rss-header.xml \ ./tmp/articles/gen-articles-tmp-rss.xml \ ./con/rss-footer.xml \ -- cgit v1.2.3