- From
- Joe Hahn
- Date
- Topic
- #drupal
- Read
- 3 min
This blog still runs on Drupal. Just not on the internet anymore.
I write and edit posts in Drupal on a computer at home. When I'm done, it saves every page as a plain file, and those files are what you're reading. There's no software running on the web server, only pages waiting to be read.
Why bother
Most websites are programs, so every time you load a page, the server runs code and asks a database what to show. That code can have holes, and people go looking for them.
Lately they're finding them faster. AI tools have gotten good at spotting weak points in website software, and the security fixes keep coming. This month Drupal put out several at once, including one serious enough that an attacker could have run their own code on a site. I patched it that week, and then I asked myself why a personal blog needs to run code at all.
A folder of files has very little to break into. No login page, no database, no code to trick. Someone would have to get into the hosting account itself, and that's a much harder door.
What changed for you
Almost nothing, which was the goal. Every old link still goes to the same post. Search engines see the same titles and descriptions they saw before. I checked all 30 pages against a copy I saved first.
A few small things did change: the home page now shows its posts on one page instead of ten at a time. It's a little faster, because the server only has to hand over a file.
Search still works
This is the part I expected to lose, because search usually needs the server to look things up for you.
Instead I use a free tool called Pagefind. After the site is saved, it reads every post and builds a small index, like the index at the back of a book. When you search, your browser reads that index directly. The server doesn't do any work.
It's basic, and it finds posts by the words in them, and it needs JavaScript turned on. For a blog with 31 posts, that's plenty.
What I gave up
You used to be able to follow this site directly from Mastodon. That doesn't work with plain files, so it's gone. My own Mastodon account still shares new posts.
There are ways to bring it back. A bridge service like Bridgy Fed can read the site's feed and pass new posts along to Mastodon, so nothing has to run on my server. Or a small bot account could post every new article automatically. A third option is a separate little server that does only the following part, and leaves the blog as files. I haven't tried any of them yet, but the bridge is probably where I'd start.
Publishing has one extra step now: I save the post, rebuild the site, and upload it. That takes about a minute.
This works because my blog is simple. A site with comments, sign-ups or shopping carts can't just become files. I've also only just switched, so ask me in six months whether I miss the old way.
Links: Tome, the Drupal tool that saves the pages · Pagefind