hugo hot off the development branch. Periodically I need to checkout the code and re-build it. I find myself having to google to do this almost all the time. So today, I’m gonna document this here so I can quickly look it up next time I want to update
hugo code has already be cloned to the following location in my desktop:
mkdir -p $HOME/dev/go cd $HOME/dev/go git clone https://github.com/gohugoio/hugo.git
Here are the commands to update the
hugo code, rebuild and reinstall it:
cd $HOME/dev/go/hugo git pull go install --tags extended
--tags extended is for Sass/SCSS support. Since I don’t use this feature this moment, it can be left out.