diff options
author | Bradley Taunt <bt@btxx.org> | 2025-08-21 14:17:45 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2025-08-21 14:17:45 -0400 |
commit | 540e5363d828f685037e665c6ec423d4ae3ca170 (patch) | |
tree | 91f26573c4897556b06f72c0eb813d1a962d16dc /mdhtml | |
parent | 642d60cb023b2727b3e0e405180da387152a7512 (diff) |
Diffstat (limited to 'mdhtml')
-rw-r--r-- | mdhtml | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 {} \; |