Tux Machines
From WordPress to Hugo
Posted by Roy Schestowitz on Oct 08, 2024
Julia Evans â Some notes on upgrading Hugo
Warning: this is a post about very boring yakshaving, probably only of interest to people who are trying to upgrade Hugo from a very old version to a new version. But what are blogs for if not documenting oneâs very boring yakshaves from time to time?
So yesterday I decided to try to upgrade Hugo. Thereâs no real reason to do this â Iâve been using Hugo version 0.40 to generate this blog since 2018, it works fine, and I donât have any problems with it. But I thought â maybe it wonât be as hard as I think, and I kind of like a tedious computer task sometimes!
Lee Peterson â Itâs time to stop paying WordPress
Iâve got a lot on, Iâm feeling overwhelmed but I canât keep paying WordPress for its services with the current CEO at the helm.
[Old] Ashish Bhatia â Migrating from WordPress to Hugo
The stack I eventually ended up with is
1. Markdown - all posts have to be in Markdown. Overtime, I have fallen in love with writing posts in Markdown and have been copying it over to WordPress.
2. Single container deployment - Deployment as a single container on Google Cloud Run
3. Hugo - Tooling written in interpreted languages like Python and TypeScript decays really quickly over time. The fact that Hugo was written in Go was a huge upsell for me. I, myself, have written several tools and have always felt that the code maintainability of languages like Go is much higher than Python.
4. Busybox - To minimize the attack surface even further, my final docker image contains HTML, CSS, Javascript, and only one binary busybox-httpd server. I donât think one can cut the attack surface more than this.