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
Front-matter defaults in collections #2405
Comments
I think /cc @benbalter @mattr- |
We should be building under the assumption that we are abstracting and posts and pages will eventually be a specialized collection. No more one-off logic. |
I'm 👍 to @benbalter's suggestion. |
👍 for |
yeah, def 👍 on |
Looking forward to this being shipped :) In the meantime, a note in the documentation would be welcome. I tried for some time to use the |
Yes, which I found when I searched for “defaults” in issues. Thank you very much for your work on this :) What I meant was that the currently distributed version (2.0.3) does not seem to support |
Front-matter defaults are available since #2205 and collection support is enabled since #2199, but unfortunately front-matter default values for collections are not implemented.
This is my initial implementation proposal for that.
Implementation
Create a new "defaults scope" named
collection
._config.yml example:
The values
test
andtest2
are only available in files which belong to the_slides
collection._slides/example-slide.html:
Any ideas/opinions?
The text was updated successfully, but these errors were encountered: