You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Eleventy’s data cascade merges front matter data from the current page’s layout. However, the code only looks at the local data and the page’s front matter for the layout key, meaning that a default layout specified as global data is not included here.
View the contents of _site/*.html. Note that some_data is available to both the template and the page in front-matter-layout.html, but completely missing from global-layout.html.
Expected behavior
Both .html files show the value “Hello, world!” in the quotes
Environment:
OS and Version: macOS 12.1 (21C52)
Eleventy Version 1.0.0-canary.48
The text was updated successfully, but these errors were encountered:
Describe the bug
Eleventy’s data cascade merges front matter data from the current page’s layout. However, the code only looks at the local data and the page’s front matter for the
layout
key, meaning that a default layout specified as global data is not included here.eleventy/src/Template.js
Lines 384 to 386 in 36fc4b7
To Reproduce
Steps to reproduce the behavior:
npm install
npm eleventy
_site/*.html
. Note thatsome_data
is available to both the template and the page infront-matter-layout.html
, but completely missing fromglobal-layout.html
.Expected behavior
Both
.html
files show the value “Hello, world!” in the quotesEnvironment:
1.0.0-canary.48
The text was updated successfully, but these errors were encountered: