Creating Jekyll Posts

Being a good programmer, I am told, is all about being lazy. So, I got bored with creating posts by hand and wrote a little console application to do it for me.

It accepts up to 3 arguments, the post title, a date in ISO 8601 format (today’s date is assumed), and a list of tags.

Many of the refinements are based on my own setup, so if it’s run from the main jekyll folder, with a _posts subfolder, the post will be created there.

One important feature to note is jekyll really, really doesn’t like Unicode with BOM, so you have to be careful to explicitly create a UTF8Encoding object (with BOM turned off) when writing out the file content (see line 42).