It’s fair to say this blog hasn’t had much attention over the last few years. Part of the reason was the site itself. It was running on WordPress on a server that was getting old, and keeping it going had become a job in its own right: PHP needed updating, WordPress and its plugins needed updating, and the server underneath needed patching too.
So I decided it was time for a fresh start.
What’s changed#
The site is now built with Hugo, a static site generator, and hosted on Azure Static Web Apps with Cloudflare in front. It also has a new custom theme, designed around the kind of posts I write: code, screenshots and error messages.
All the old posts have moved across and kept their original addresses, so existing links and search results still work.
Why Hugo suits me better#
- No server to look after. No PHP, no database, no plugins and no operating system to keep patching.
- Faster. Every page is plain HTML, served from locations close to wherever you’re reading.
- More secure. With no login page, database or plugins, there’s very little to attack.
- Cheaper. It runs on the Azure Static Web Apps free plan instead of a virtual machine I was paying for.
- Posts are just files. Everything is written in Markdown and stored in GitHub, so I get full version history and a backup for free.
- Publishing is simple. I push a change to GitHub and it builds and deploys itself a few minutes later.
- Better for code. Gists and code blocks match the site, with syntax highlighting and a copy button on every block.
What’s next#
Now that the site takes care of itself, I’m hoping to start adding more content soon. Comments are switched back on too: you can leave one below with your GitHub account.
Comments