Codekoan Blog

Learning Hugo, relearning Go

Setting up Hugo

So far, setting up hugo is as one should expect, super easy and really the only issues I’ve been having are related not to hugo, but to Go. Being built on Go, Hugo is super fast and has support for bringing in any number of external packages for use.

I did run into an issue with the go.mod file. As I don’t think I ever used it in my previous life as a go dev at Google, where package needs to be set there. Looking up the documentation of the mod file it is more apparent but I originally thought that the “module” keyword was your list of dependencies.
Sometimes you lose a lot of time to badly documented things. As I put the name of the module to be the name of the hugo image resize module I wanted to use, the system didn’t error and didn’t try to use the actual module.

For now I’m using the paper theme just to get things going but I assume that I will change it later once I get some more content and experience with this system. It’s clean, looks fine and gets out of my way which is most of what I want from a content theme. If I want to add things it doesn’t support then I’ll have to see at that point what to do. The only thing I need to figure out is more metrics as I don’t think that the namecheap I’m using to host this on has great metrics.

Next steps

  • Customize the theme with icons.