427.org.uk

Random musings and out of date things


New site generator

15th November 2026

tl;dr I got annoyed with jekyll and the ton of dependencies it has so I’ve written a replacement in Go.

After leaving it for far too long I recently upgraded the OS on the server this site runs on. Annoyingly, that caused jekyll to stop working. I have fixed this in the past but I really don’t like these modern things which pull in loads and loads of dependencies, any of which can cause problems.

The last few years I’ve been writing a fair bit of Go. One thing I really like about it is how much is included in the standard library, so I decided to write a drop-in replacement for jekyll that will preserve the paths of all of my current blog posts in Go.

My main goal is to have a static site generator that only uses the standard library, though I’m not quite there yet. For speed I’m running the markdown through pandoc, but everything else is just standard Go with no other modules.

One thing the Go standard library is missing is handling of YAML, so I have ended up having to parse the YAML front-matter on each post myself. I didn’t feel like making a full-blown YAML parser so it’s very limited, but does what I need it to do now.

I also dipped my toes in to the encoding/xml module for the first time to generate the RSS feed, which is hopefully working fine now.

All in all this was a fairly fun and quick project that does all I need it to, but has a fair bit of space for improvement. One day I might open source it, but it’s a bit too specific to my needs at the moment.

Oh, and needless to say for anyone who knows me, this has been completely, 100% hand crafted with absolutely no use of AI. Use your brains while you can!