Streamline your writing in Jekyll with some commands.
Add this line to your application's Gemfile:
gem 'jekyll-compose'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-compose
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
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
- Fork it ( http://github.com/jekyll/jekyll-compose/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Run the specs (
script/cibuild
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request