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
Allow extensionless document in a strict site #7950
Conversation
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.
I don't really remember why we allow extensionless documents in collection :)
@DirtyF I tested down until Jekyll 3.6.. |
We should rather aim at removing those discrepancies and align on posts behavior for extensionless documents. |
Could you clarify with an example scenario..? |
I haven't got a specific scenario in mind, where you would need to have extensionless files in a collection, do you? |
@jekyll: merge +fix |
Background
Jekyll allows Documents in a custom collection to be without an extension (even if Markdown content in it won't get converted).
But in Jekyll 4.0, such documents output an error:
But building proceeds since the error is rescued away.
However, if the site has been configured with
strict_front_matter: true
, the build aborts on error.Summary
Ensure a non-nil
slug
for extensionless document in a custom collection and not abort builds withstrict_front_matter: true
.Extensionless document inside
_posts
continue to remain unread.