diff options
Diffstat (limited to 'build.sh')
-rw-r--r-- | build.sh | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 {} \; |