vbrandl.net/prepare.sh

10 lines
290 B
Bash
Raw Normal View History

2017-06-05 11:40:22 +02:00
#!/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" \;