I’ve been using Hugo for a little while now on Linux. Since I had my MacBook with me this weekend, I wanted to give it a try. It was easy.

The first thing to do was to do a git clone for my blog content. Nothing surprising there.

Next, I installed Hugo using brew install hugo. That took a few minutes but got me v0.76.5/extended on the Mac. No issues.

After that I created a post (this one) using hugo new and previewed it out with hugo serve. I ran into a problem building the site:

Start building sites … 
Built in 22 ms
Error: Error building site: "/Users/robericsson/myblog/content/page/search.md:5:1": failed to extract shortcode: template for shortcode "search" not found

I’ve run into this before so ran:

git submodule init
git submodule update

Tried hugo serve again and Bob’s your uncle.

Lastly, did a git commit and a git push to publish it.

All in all, it took about 15 minutes from zero to new post. Another win for Hugo.

hugo