README
generator-jekyll-utils
Installation
Install the generator by running: npm install -g generator-jekyll-utils.
Usage
cd into your Jekyll project and run any of the following commands:
yo jekyll-utils:draftyo jekyll-utils:postyo jekyll-utils:page
To turn a draft into a post, run yo jekyll-utils:publish. This will update the date and prompt to change the title.
Options
Write the TITLE in the arguments: yo jekyll-utils:page About Me.
Use the --skip-greeting flag to hide Yeoman ☹.
Support
If you are using the amazing generator-jekyllrb you can run it from the root folder.
Shortcut
You can reduce the typing by adding the following code to your .functions file like I did.
# Yeoman Jekyll Utils
function jk () {
yo jekyll-utils:$@;
}
This results in the ability to run jk post My new blog post.