aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.sh
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2025-08-20 15:18:57 -0400
committerBradley Taunt <bt@btxx.org>2025-08-20 15:18:57 -0400
commit642d60cb023b2727b3e0e405180da387152a7512 (patch)
treedd09a5a4d5d10f4247d34f067bec4bb773ac13a2 /build.sh
parent6ded78a4af8350d1764fab56c019bc55c504bedf (diff)
Overhaul for self hosting, tweaks
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index ec0ea86..fd5a2cf 100644
--- a/build.sh
+++ b/build.sh
@@ -1,7 +1,10 @@
# ! /bin/sh
rm -rf public/*
-cp style.css public/
-cp favicon.ico public/
-cp images/* public/
-(cat _header.html; multimarkdown index.md; cat _footer.html) > public/index.html
+cp -R assets/* public/
+
+for file in *.md; do
+ name="${file%.md}"
+ (cat _header.html; kramdown "$file"; cat _footer.html) > "public/${name}.html"
+done
+
find public -type f \( -name "*.html" -o -name "*.css" \) -exec gzip -k -f {} \;