diff --git a/prepare.sh b/prepare.sh new file mode 100755 index 0000000..15ea5ed --- /dev/null +++ b/prepare.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +HUGO_BIN="hugo" + +# build static pages +${HUGO_BIN} + +# ahead of time compression and timestamp fixing +find public/ -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' -o -name '*.xml' -o -name '*.svg' \) -exec gzip -v -k -f --best {} \; -exec touch -r {} "{}.gz" \;