Wordpress blares out notifications every time I log in — look, there is one now! — and eventually the constant need to upgrade and begins to wear and engender a slight paranoia about being hacked, making me look into alternate blogging platforms.
Because, clearly, the reason I haven’t written more is because of the blogging platform I’m using. To be honest, this is more than yak shaving, and really wanders into the area of a whole-day spa for yaks.
My requirements were simple: none! Just need to write content and have it published somehow.
Static generators are the new hotness — you can’t wander into the front page of HN without hitting at least one new one — although the road to blogging is littered with the bodies of abandoned generators. I fortunately was able to avoid the temptation of writing my own, although I have to admit that it was a close thing, especially after learning about Frozen-Flask and Flatpages: just write the blog dynamically and then Flask can “freeze” your app into static files. RSS seemed like a pain, though.
(Just for the record, Ghost is nice. Really nice! No API, though, and no defined static commenting system. Beautiful default theme. Will probably come back to this in a while.)
So, I basically worked down the systems at Staticgen in descending popularity.
Jekyll (and Octopress) are the category leaders. But, posts have to be prefixed with the date, and it looks like this is a hard restriction. Ugh. Really, just ugh. Also, generation seems really slow but given that I’m adding an article only a few times a year it seems churlish to complain about slow generation.
Pelican seems like a natural fit, since it uses Python. But, in playing around with it, I couldn’t get the theme I liked to work with pagination at all, instead just getting weird errors that were hard to track down. Update: Fixed the pagination problem, but… no hierarchical categories (and it’s by design)
Hexo pleasantly surprised me. Really good documentation and really good support features — for example, hexo-migrator-wordpress for importing Wordpress sites, or stuff like hex-migrator-image to download images that are referenced. Generation is fairly quick and the design seems clean. This is a really nice project.
Metalsmith is worth visiting just to see the clearest abstraction of static blog generation on the home page of the web site. Seemed like overkill for my blog, though.
Hugo is written in Go and is just ridiculously fast. I mean, really, a magnitude faster than almost anything else. Sadly, no pagination support.
Still looking at this. If I’m smart I’ll just use Jekyll and squint whenever I look at those horrible date-prefixed filenames.
Updated 9/5: Also looked at Middleman (a nice system, use middleman-blog to jump start everything) and nanoc (mentioned on HN favorably, with a really clean and intuitive system for controlling generation — well designed but you end up having to implement a lot more stuff for a blog than some other generators) and played around with the possibility of using Gulp (interesting experiment, but that’s basically writing my own blog generator). Finally decided that my effort would be better spent on making content rather than worrying about the content container.
Updated 9/6: Just spent a couple hours trying to figure out why the Wordpress 4.0 upgrade broke my code blocks. Somebody is toying with me, I just know it.
Updated 10/10: Sigh. Switched to a custom program for my blog, which is absolutely the wrong way to go about it – why spend time when it has been done by so many others so much better? – but it turns out that the cognitive load for Python is less than the cognitive load for learning another static generator. If I ever get to posting more than one post a quarter I’ll revisit it.
Updated 1/20: Looked at Hugo again which is close but hit a limitation in the lack of MD5 for gravatar URLs, and Hugo does not really have any way to add plugins / custom functions. Also new on the horizon is Lecktor, which is a neat hybrid of a static generator with a local admin interface for editing. It has a slightly wonky schema for its content, though (every page must be in its own directory).
Comments are moderated whenever I remember that I have a blog.