vbrandl.net/build.sh

10 lines
294 B
Bash
Raw Permalink 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
2017-06-20 18:08:03 +02:00
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" \;