I decided recently that I wanted to start posting to this site more regularly. This means smaller postings in general, which means "blog". But I still wanted my site to be authorable in vim, and I wasn't that interested in having people's comments around. So, given that it was a long weekend, I've hacked up a script that lets me author a post in vim/rst, which it takes and deploys to the website.
Well, it's a bit more complicated than that. It stores the post locally in a postgres database, and then rebuilds the entire site, so that the blog archive pages are recalculated. I'm planning on adding support for editing/removing posts, and editing the other static pages. I'll also have to work out a way to deal with images.
But the net result is a site I can edit in vim, writing in restructured text, that is extremely high performing and secure. It's also a huge hack ^_^. But I wouldn't have it any other way.
I also gave the design a bit of a facelift - the whole 'site in a small window of the page' thing was making me annoyed. Not sure how I ended up with a yellow theme but sometimes these things happen. It'll probably only look good in firefox/linux, as I decided I liked the default fonts but couldn't work out their names so have just declared them as 'serif'/'sans-serif' in the stylesheet.
Want to share this post? Tweet