Hugo Early Release Installation
Installing Early Release of Hugo
Working on a new project that uses Hugo static site generator, I initially installed hugo via homebrew with the following command
brew install hugoAttempting to launch a website built with Hugo 0.79.0 after the installing the current version (at the time of this post Hugo version 0.88.1) on the my machine resulted in the following:
Terminal Hugo Server command warning
|
|
While the warning,
WARN 2021/10/15 14:13:35 markup.defaultMarkdownHandler=blackfriday is deprecated and will be removed in a future release.
is not a detrimental issue, eventually we’ll want to fix this. Per the v0.87.0 release notes, blackfriday was deprecated.
What if I’d like to have the old and new Hugo version installed?
The first step is to go to the Hugo github, and select releases at the bottom right of the screen:

Hugo github page, releases button bottom right of screen
On the Hugo release page Scroll through the pages and select the version you desire, in my case 0.79.0. Scrolling down to the bottom of the specific release page under “Assets,” you’ll need to find the version you need. I clicked and downloaded hugo_0.79.0_macOS-64bit.tar.gz as I am using a macOS Big Sur.
Editing my login shell, ~/.zprofile, I added the environment variable: export PATH=$PATH:$HOME/bin
Using the “source” command, source ~/.zprofile, will allow us to reference the login shell this session.
We can go to the ~/bin folder and extract the tar archive here with the command:
tar -xvzf ~/Downloads/hugo_0.79.0_macOS-64bit.tar After extraction, you can change the name of the executable to something like “hugo79” which will allow you to specify which hugo to run. I.E.
hugo server #(current version)hugo79 server #(old version)Now running the old version of hugo…
|
|
The warning no longer displays. Perhaps I can post about fixing this warning in the future, and when I do I may reference the release notes above and Hugo content formats.