Add prepare script
This commit is contained in:
parent
369c392927
commit
aa3acc264c
9
prepare.sh
Executable file
9
prepare.sh
Executable file
@ -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" \;
|
Loading…
Reference in New Issue
Block a user