support for layout YAML and njk templates? #482
Unanswered
jonathanhung
asked this question in
Q&A
Replies: 1 comment
-
Considering re-writing the following within notes.11tydata.js to bring back layout within YAML
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I tried to put a layout: field in the YAML front-matter, and while Eleventy knows to look for it, it comes up as "undefined" and yields an error. I placed the layout within
site/_includes/layouts
as a sibling to the note.njk and index.njk[11ty] Original error stack trace: Error: You’re trying to use a layout that does not exist: test-layout (undefined)
Am I doing this incorrectly or is it not supported presently?
Beta Was this translation helpful? Give feedback.
All reactions