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]]
Used as the title, description and slug
Comma or space separated list. It’ll try separating by commas first and then spaces if commas didn’t work.
Any filetype that jekyll supports. EG:
jk_quickpost.rb "Hello world!" "my, blog post, of, doom" "textile"
@ROOT path in this script is set to the present working directory. My personal version is set to the full path to my jekyll
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.