Hugo Deploy

My work log for deploying Hugo on my instantiation, using https://euantorano.co.uk/hugo-git-deployment-nearly-free-speech/ (this mostly worked for me but required some minor changes). Installing (a correct version of) Hugo on NearlyFreeSpeech #!/usr/bin/env sh set -ex VERSION=0.145 FILENAME="hugo_${VERSION}_FreeBSD-64bit.tar.gz" BIN_DIR=$HOME/bin mkdir -p "${BIN_DIR}" fetch -q -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${FILENAME}" tar -C "${BIN_DIR}" -xvzf hugo.tar.gz hugo rm hugo.tar.gz If you want to change the version above, make sure it exists in the correct combo of version x operating system at https://github.com/gohugoio/hugo/releases/download/*. You may then need to modify FILENAME. ...