Skip to content

Conversation

@campo
Copy link
Contributor

@campo campo commented Jan 17, 2015

Thanks for writing up this compose tool. It was something I realized I wanted and was happy to see already existed! I noticed that running the draft command threw an error on a clean install and put together a fix. I updated the version number simply because it seemed like the thing to do.

When using the drafts command, if the _drafts folder does not already exist, create it. This prevents errors when running the draft command for the first time on Jekyll 2.5.3.

Before:

10:00:26 ~/projects/compose-test > jekyll draft "My New Draft"
jekyll 2.5.3 | Error:  No such file or directory @ rb_sysopen - _drafts/my-new-draft.md

After:

10:03:11 ~/projects/compose-test > jekyll draft "My New Draft"
New draft created at ./_drafts/my-new-draft.md.

- When using the drafts command, if the _drafts folder does not already exist, create it. This prevents errors when running the draft command for the first time on Jekyll 2.5.3.
parkr added a commit that referenced this pull request Jan 17, 2015
parkr added a commit that referenced this pull request Jan 17, 2015
@parkr
Copy link
Member

parkr commented Jan 17, 2015

Merged as 4b9ce9b

@parkr parkr closed this Jan 17, 2015
@parkr
Copy link
Member

parkr commented Jan 17, 2015

@parkr
Copy link
Member

parkr commented Jan 17, 2015

Thanks!

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants