Chris Wiegman

Turning This Site Into a Hugo Theme

/images/2024/11/chriswiegman-hugo-theme.png

When I moved back to Hugo from WordPress I decided to keep the same repo I had from my last foray into Hugo (2019-2020). That allowed me to keep the old version of the site while still giving me a good base to convert my WordPress theme over to Hugo.

For the most part it worked pretty well. Few seem to notice the change and I still have a theme I love. The catch was the theme and content now lived in a single monorepo and I just didn’t find that to me ideal. The problem was that it made it much harder for me to share the theme yet I was still getting requests for it.

This past weekend I fixed it by splitting my site into two repos, a “content” repo that is now private and a theme repo that will make re-using this theme much easier for anyone who may want to use it.

The conversion was actually pretty simple. I only needed to move the layout, assets and archetypes folders to the new repo. The only problem, so far, is that there is still some hard-coded content in places like menus and that’s going to take me a little bit to get sorted out, but I will do so over the coming weeks.

If minimal themes are your thing you’re welcome to give it a try yourself. You can fork or download the theme at the chriswiegman-hugo-theme repo.