From 540e5363d828f685037e665c6ec423d4ae3ca170 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Thu, 21 Aug 2025 14:17:45 -0400 Subject: Use mdhtml build structure --- mdhtml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mdhtml (limited to 'mdhtml') diff --git a/mdhtml b/mdhtml new file mode 100644 index 0000000..fd5a2cf --- /dev/null +++ b/mdhtml @@ -0,0 +1,10 @@ +# ! /bin/sh +rm -rf public/* +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 {} \; -- cgit v1.2.3-70-g09d2