aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorhitlerrip <git@hitler.rip>2025-07-29 10:57:22 +0200
committerhitlerrip <git@hitler.rip>2025-07-29 10:57:22 +0200
commit6a628110fef7c20e9c984287781c56b951f476b9 (patch)
treeb38df494c9b3a203d59c29a5393ce27efe51ae79 /build.sh
parent85a3ff98423502e1aeaf5f08868d38090df9fdf1 (diff)
downloadwebsite-6a628110fef7c20e9c984287781c56b951f476b9.tar.gz
website-6a628110fef7c20e9c984287781c56b951f476b9.tar.bz2
website-6a628110fef7c20e9c984287781c56b951f476b9.zip
article list improvements
- styled article list - added dynamically generated article list to markdown index - (initial run.sh)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh15
1 files changed, 12 insertions, 3 deletions
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
</article>
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
<item>
@@ -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 \