As you may have noticed, I just recently started this Jekyll blog and still getting the hang of it.
In my previous post, I suggested a couple of extensions you could use in Visual Studio Code for markdown without too much tinkering. And while these extensions are very useful, I just found jekyll-compose
, and boy is it handy!
As suggested here, just add that line to your Gemfile
, so it looks like this:
gem 'jekyll-compose', group: [:jekyll_plugins]
Or if you plan to “grow”, do this instead:
group :jekyll_plugins do
gem 'jekyll-compose'
end
After successfully installing it, just by typing the following command I get a new drat under the _drafts
folder:
bundle exec jekyll draft "New Draft"
And jekyll-compose
takes care of properly naming the file, so you can take care of the important stuff.
Summary
- Add
jekyll-compose
to yourGemfile
- Execute
bundle
command bundle exec jekyll draft "{title}"
- Write your post
bundle exec jekyll publish _drafts/{title}.md
- Commit and push
- Success!
Don’t forget to read the documentation!