Previous version of hugo on Mac
Unfortunately, there is no way to set up versions older than 5 previous versions with brew. Here’s a quick workaround:
brew uninstall hugo
- Head to github.com/gohugoio/hugo/tags and navigate the version you need
- The Mac versions are the
hugo_*_darwin-*.tar.gz
ones- darwin = macOS
- universal = works on both Intel and Apple Silicon Macs
- extended version includes additional features like SASS/SCSS support
- The Mac versions are the
- Download and extract the tar file
- Move the binary to
/usr/local/bin
- When starting the Hugo binary for the first time, your Mac will show a security warning
- Don’t delete the binary
- Go to System Settings (or System Preferences)
- Privacy & Security
- Click “Install app anyway”
Voila!
purists will yell at you to make it work with the latest version for whatever reasons, but who cares for a static website
Thanks for reading
As always, hit me up and letβs hang out. I now focus on making unblocked game (try Bomberman and Snake!). + trying to gather developers in Taiwan with TaipeiDev. If you are in Taipei, come hang out!