Zola for static site generation vs PHP

We are in a new era of information security on the Internet. With AI / LLMs (Large Language Models) running wild all over open source codebases looking for vulnerabilities, I felt like it was time to reconsider the stack of software I have been using to serve my little blog.

I had not been spending any time on maintenance of my site and had fallen behind on basically everything... Operating System, Docker, PHP, and CMS versions. When the recent Linux, nginx, and PHP vulnerabilities were announced, I shutdown my blog to ponder my options. One option was to just shut it down permanently. I don't blog very frequently anymore. Not many people read it. I asked myself "Is it still worth me putting any energy into this activity?" Shutting down was a very real possibility.

I used Geeklog for many many years and it served me well. However, I had been thinking about converting to a static content approach for a long time. I hoped that static site generation would be simpler to maintain and require fewer server resources and be a better overall solution for my blog going forward. The migration hurdle was something that stopped me from pulling the trigger in the past. To get my blog back online I decided to try a conversion. With the help of Copilot in Visual Studio Code, using the source PHP files (the live website was still turned off), static content (images), and a dump of the mariadb database I was able to port my content in a few hours over the Thanksgiving weekend. Oh, I also took the opportunity to split my content and moved the personal non-techy stuff to my personal blog. Both are running on a shiny new VPS server with a much simpler setup, just a low-powered webserver serving static content, deployed by CI/CD (GitHub workflows).

I didn't read the migration code. I only inspected the outputs and nudged Copilot a few times, iterating on the final design, fixing some encoding issues, getting the site layout looking the way I wanted it and not too far from the old site. It's odd living in the paradox of "I like coding" and "I want to get this done quickly with low effort". I was kind of impressed with how well the AI tooling supported me in this work. I didn't spend any money, Copilot was free and sufficient and I never ran out of tokens or anything like that.

I settled on a static site generator named Zola that is built in Rust.

Zola website screenshot

So far I am happy with Zola. It is super fast and easy to work with.