-
My objective is to separate the writing from the layout (to separate writing from HTML) but still be able to use Front Matter at the top of the document that holds the writing. I'd like to be able to divide a document into "snippets" and insert those snippets into a layout template. The layout template holds all of the html, the other file (the document), is written content (like a page in a journal). I don't want to separate that document into multiple documents just to be able to insert those snippets into the HTML template (for example, Introduction.md, Body.md, Close.md) - (see #1467 (comment)). My earlier enthusiasm about extends and block was premature as there appears to be a limitation where we cannot use Front Matter with extends and blocks. I've made several goes at a Config file function workaround trying to follow (#853 (comment)) that ended up in nothing but undefined. Does anyone know of a workaround or something in Eleventy that I am missing that makes it possible to do what I want to do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 20 replies
-
@ValLynn Do you have a sample repo with what you're trying to do? |
Beta Was this translation helpful? Give feedback.
@ValLynn Do you have a sample repo with what you're trying to do?
I don't think I'm understanding how you're trying to separate front matter from layouts with blocks and snippets.