Switching to Hugo From Jekyll
I’ve been neglecting this blog and decided I would update it to at least get a verified link in Mastodon (@gardenmwm@mastodon.social) However when started trying to tweak the Jekyll setup I completely broke the site. I was never really happy with the way Jekyll themes worked so I started looking at alternatives and decided to give Hugo a try.
Getting Hugo Setup
I was suprised at how easy it was to setup after Jekyll. I simply did a brew install, then did
hugo new site mattmarshall-blog
Then added a theme via git submodules
git init
git submodule add https://github.com/lxndrblz/anatole.git themes/anatole
echo theme = "anatole" >> hugo.toml
I then spent some time going through the Anatole themes documentation and added a bunch of settings to the hugo.toml
Migrating posts
This was where a few issues came up, I found a script that purported to do an automatic conversion, but it uh, didn’t. I ended up having to change all the metadata to hugo’s specific versus Jekyll.
This was mostly focused on adding dates, removing " from the arrays, and changing the image metadata
Future Plans
Next up is to do some github actions to auto build the site and create a docker container on a k8s cluster. For now though manually updating isn’t to burdensome, especially how infrequently I seem to update this blog.