Jekyll quick post shell script

Here’s a quick script I wrote to create blog posts for my jekyll blog.


jk_quickpost.rb title [categories [filetype]]


jk_quickpost.rb "Hello world!" "my, blog post, of, doom" "textile"


The @ROOT path in this script is set to the present working directory. My personal version is set to the full path to my jekyll _posts directory.

I have it pushing the new blog post to an origin remote in the master branch. You might want to change that to a gh-pages branch instead.