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
Documentation: The word "content" is reserved for 11ty in layouts #3132
Comments
I would go as far as to say having a |
Seems pretty doable: https://github.com/uncenter/11ty-fork/blob/feat/reserved-keyword-global-data-throw/src/TemplateData.js#L330-L336. Not sure how to find what keys are reserved though, those are just manual. |
@uncenter |
That's why I was just thinking global data for now. |
I just took a look and found that the content variable is set directly before passing the data into a layout here: https://github.com/11ty/eleventy/blob/main/src/TemplateLayout.js#L229 I'm unsure whether or not this works with computed data. |
https://github.com/11ty/eleventy/tree/frozen-reserved-data has some of the start of this, freezing |
Let’s regroup on this one over at #1173. |
Fixed by #3251 Shipping with 3.0.0-alpha.7 |
Thanks, @zachleat! |
Originally posted by @Snapstromegon in #3131 (comment)
The text was updated successfully, but these errors were encountered: