Will Ranjan-Churchill

Moving to PureBlog

It's been too long since I've completely rebuilt my website. Time for a new CMS!

It's been a while since I've messed around with my website.

While Jekyll has served me very well, and until recently I had a workflow that worked very well for me. But then I went and messed around with my Obsidian Vault (yes, since the last time I posted about it), and while that was great for my day-to-day, it sort of broke the headless website thing I had going. I didn't want to go back to uploading via FTP all the time, and I certainly didn't want to move back to WordPress, so it seemed like the perfect time to take the plunge into PureBlog.

I've had my eye on PureBlog for a while - my journey with my personal website doesn't seem to been all that different from its creator, Kev Quirk. In particular, I've enjoyed at various times playing around with WordPress, Kirby, and Jekyll.

Getting started

Installing PureBlog could not have been simpler. Full docs, clearly written, are here. In less than 2 minutes I had the basic site up and running. Now, to migrate all my content across.

At first, I just dumped all of my Markdown files into the posts folder, mostly just to see what would happen. Interestingly, the stats dashboard handled this very well, and I could even see all the posts in the admin post list. But none of the content was there. Obviously, I needed to properly import everything, as clearly explained in the documentation. Handily, PureBlog has a number of importers. There isn't a Jekyll one, but the BearBlog importer assumes the files it sees are Markdown, so this seemed like the best place to start.

Importing content

There are some differences between the frontmatter nomenclature for BearBlog and for Jekyll. But opening up my website folder in VSCode meant I could do a quick series of "find and replaces" to get me most of the way to where I needed to be. Including:

I also have a field for categories, but for my writing these days it feels a bit pointless (the distinction between an "opinion" and a "musing" is sort of arbitrary, and all the other things I'd differentiate with that either make up such a small part of my posting, or they live elsewhere on the web). PureBlog helpfully merges these with tags on the import, which is a nice touch, but I actually opted to remove them altogether.

It was at this point that I remembered I was a developer, and I could just take a look at the code for the importer file and make the necessary changes there. By now, I'd done most of the work already (and it had taken mere minutes), but there were some other things I needed to do, including:

After about 15 minutes of work (bringing my total time on this new site to 17 minutes, for those keeping count), I'd wrangled my 70 or so posts into a format that the importer liked. I followed the instructions and seconds later all my posts were sitting in PureBlog!

There was some other work to take care of - datafiles to handle my blogroll and "buckets" (something I use to manually collate related posts together, to give a sort of "related posts" feature at the bottom of some posts), and the creation of other pages. The Jeykll inspiration for parts of PureBlog came through here though, and this was light work. I spent an evening putting the site back together in such a way that, functionally, it's pretty much exactly the same on the front end.

One thing I did have a minor concern about was the replacement of two of my custom Jekyll plugins. One of these handles "asides" - inserts into my posts that I use for a number of different things. Jekyll uses Ruby to convert these from Markdown to HTML, which isn't an option for a site that is designed to handle everything on a shared server. But that isn't a problem, as Kev has included hooks as part of PureBlog's features. Just like WordPress hooks, devs have the option of manipulating post content before it's rendered, giving me the perfect avenue to get what I needed.

It's a credit to the FOSS movement

I'm having a blast with PureBlog. It's all the best parts of Jekyll and WordPress put together, deployed into a simple and effective platform. It works great out of the box for a brand new site, and it gives you the ability to spend an a couple of hours scratching a dev itch to tweak it to be what you need.

It's a real showcase in how Open Source Software is supposed to work. Here was someone with a very specific problem - a need for a website platform than dealt with flat-files and Markdown, but that can be hosted on a simple server, all with the ability to be built on and customised as needed. It turns out, that's not an uncommon request.

What I need from my site is about 80% of what Kev needs from his, but by making PureBlog Open Source, he's let me (and a bunch of others) bolt on the extra 20% of things that I need that most don't. There are definitely things I'll be playing around with, including trying to get back to a semi-headless situation of posting directly from my Obsidian vault.

For now though, I'm very happy with my new site. If you're in the market for a new web platform, give it a go. And if you like it, you can buy Kev a coffee.

foss, markdown, pureblog


Want to chat about anything in this post? I'd love to hear from you!

Feel free to drop me an email

Or find me on Mastodon



⬅ Previous post
Should knowledge be frictionless?

Next post ➡
Separating the art from the artist, but in tech