blob: 83ce9401becddb9a10cc3a7100d11c8a219dc77e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/local/bin/zsh
# failures are evil
set -e
# update our clone
git pull -q &> /dev/null
# export the GIT env vars we need to have links in the footer
export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
# rerun hugo generator
hugo --minify --noTimes
# current date
date -Iseconds
|