I switched to HUGO and don't regret it
Posted on October 9, 2022
3 minutes • 489 words • Other languages: Deutsch
As some of you might already have seen, my homepage just got a new design. Over the last weeks I was (a little bit more, a little bit less) always working on a new version of the homepage, because I felt that the old wordpress approach was not only slow. It also kept me busy updating and keeping everything secure all the time. I used static site generators in the past, but it had so many problems (from wrong meta tags to recreation of the site and publishing from different computers,…) that I didn’t want to use it in long term. However, I’ve overcome all of this and this is my shiny new homepage. Tada!
Static Site generation
I write my articles in markdown and push them to github. A tiny github action watches on every push that I make to the
main-branch and re-builds the website and publishes it afterwards via SFTP to my webserver.
For scheduled posts, one can just put the metadata of the article to the desired date and let github actions rebuild the site via cronjobs. HUGO will, per default, only build articles that are in the past, so scheduled publishing is very possible.
For my new website, I use the blist theme that has, per default, the support for multiple languages. This way I can just put the markdown files in the correct language path and it will be translated. The theme will also automatically detect, if the same post is available in another language and link it via metadata.
It’s possible to create a custom 404 page
and link it via .htaccess, nginx.conf etc. directly for 404 requests. The config files can just put into the
static directory and will be automatically copied by HUGO in the corresponding directories.
In the same way that I created a custom 404, I was also able to just create a robot.txt file and put it into the
There are plenty of solutions for comments out there, from cloud providers (usually not very privacy friendly) to self-hosted or even the usage of for example github issues. I chose to skip the comments for now, because I currently don’t have the time to moderate them. Sorry for that guys. If you want to, you can always reach me via mail or twitter or dev.to - see my socials at the bottom.
HUGO as static site generator for my homepage does not feel more cumbersome than my wordpress blog. In fact, I even feel relieved that I don’t have to patch stuff every day, because there’s not much going on anymore. It’s also more data privacy friendly and faster. If you want to, check HUGO out , because it’s very easy to handle once you know their conventions.