-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Multiple layout inheritance front matter #834
Comments
Yeah, sorry about that—this is by design. We don’t support mixing Nunjucks inheritance and Eleventy layout chaining in this way. Layouts are rendered independently, so you would need to use There is a short note about this here: This was important to sacrifice in order to get template language independence between templates and layout:
|
|
The previous approach with Nunjuck's {% block %} and {% extends %} does not work as you'd expect it to in 11ty. See 11ty/eleventy#834 (comment)
Describe the bug
When using front matter for multiple layout inheritance it seems not to be working.
To Reproduce
Try this layout
base.njk
:root.njk
index.njk
Expected behavior
Not have an empty page.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Additional context
Using Nunjucks inheritance it does work:
The text was updated successfully, but these errors were encountered: