Use Alfred.app to Create a New Jekyll Post
So simple, so useful. Aaron created a simple shell script—executed with Alfred—that takes a ‘template’ Jekyll post, dates and names it, then moves it to a drafts folder.
I modified it slightly to work for my setup1: Typing post post-slug into Alfred instantly opens a new post template in TextMate.
Pair this with my OS X service to insert the current date and time, and the friction is almost completely removed from creating a new post.
-
I don’t use a drafts folder. Instead I either use
↩published: falseordraft: truein the YAML Front Matter. The latter is a custom thing that does actually publish the post, but keeps it hidden from Index, Archive and RSS. The former is Jekyll default, and makes Jekyll ignore the post all together.
Have a comment? @me on Twitter or App.net