/jekyll-compose

Streamline your writing in Jekyll with these commands.

Primary LanguageRubyMIT LicenseMIT

Jekyll::Compose

Streamline your writing in Jekyll with some commands.

Build Status

Installation

Add this line to your application's Gemfile:

gem 'jekyll-compose'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-compose

Usage

Install jekyll-compose and run jekyll help.

Listed in help you will see new commands available to you:

  draft      # Creates a new draft post with the given NAME
  post       # Creates a new post with the given NAME
  publish    # Moves a draft into the _posts directory and sets the date

Create your new post using:

$ jekyll post "My New Post"

Create your new draft using:

$ jekyll draft "My new draft"

Publish your draft using:

$ jekyll publish _drafts/my-new-draft.md
# or specify a specific date on which to publish it
$ jekyll publish _drafts/my-new-draft.md --date 2014-01-24

Helpful Note

If after installing the jekyll-compose gem you still do not see the above commands available to you, try including the gem in the jekyll_plugins group of your Gemfile like so:

group :jekyll_plugins do
  gem 'jekyll-compose'
end

Contributing

  1. Fork it ( http://github.com/jekyll/jekyll-compose/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Run the specs (script/cibuild)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request