-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose command for collections #103
Conversation
This PR is related to #84 |
Not so sure about what this would mean for the invocation Also, |
So, eventually the I didn't want to remove
If collections are now to be supported, then publish and unpublish could also be made aware of collections, and instead use the yaml front matter to publish and unpublish collection items. Alternatively, publish and unpublish could just return an error and not act on collection items. Since @ashmaroli says drafts are not a true collection, the use of |
02a3666
to
62b0ddd
Compare
@ashmaroli I have added tests for The tests are from The only major change from the other tests was the structure of default yaml front matter, because I expect it in a different structure, so
becomes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes need to be made..:
Please use the existing YAML front matter structure as currently documented in the |
I have created PR #104 for this. I believe I have addressed all the changes requested, and will re-request review. I rebased and squashed this PR to incorporate all the changes. Thank you for the review! |
@alzeih I took the liberty of pushing further changes myself instead of asking you to do it.
|
Signed-off-by: alzeih <alzeih@users.noreply.github.com>
…ation structure Signed-off-by: alzeih <alzeih@users.noreply.github.com>
Rebased for conflicts with master branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me. I wish I could simply type jekyll compose _things/my-new-thing.md
à la Hugo though.
@DirtyF I chose name over filename due to how What features do you see |
@alzeih Not a problem. It's just a personal preference, mainly because I find it way easier to type and memorize. Hugo has archetypes (it's a whole different approach to provide similar feature) |
@DirtyF I can see the advantage of having automatically selected and prepopulated templates for collection items, including content! I'll think about how it might be done, though probably not for this PR. |
This PR is marked as approved, but has not been merged. Are there any outstanding issues I can address? |
@alzeih This PR will be merged after 1 more approval from @jekyll/plugin-core |
@jekyllbot: merge +minor |
This allows creating files in collections, including posts and drafts.
jekyll compose "My New Post"
jekyll compose "My New Post" --post
jekyll compose "My new draft" --draft
jekyll compose "My New Thing" --collection "things"
Default front matter can be specified for each collection.
Closes #84