generator-jekyll-utils

Include Yeoman into your Jekyll workflow

Usage no npm install needed!

<script type="module">
  import generatorJekyllUtils from 'https://cdn.skypack.dev/generator-jekyll-utils';
</script>

README

generator-jekyll-utils

Yeoman generator that scaffolds out Jekyll content.

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:draft
  • yo jekyll-utils:post
  • yo 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.

License

MIT license.