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:

  1. brew uninstall hugo
  2. 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
  3. Download and extract the tar file
  4. Move the binary to /usr/local/bin
  5. 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!


Reddit
WhatsApp