Custom layout.antlers.html for one template #5970
-
Hi! I am aware you can set a template directly inside a page's md-file like However, is it possible to set a corresponding layout file to a template automatically? Every time a page with template X is created it should use template layout_inverted by default, without specifying it in the page's markdown file. Or am I doing something wrong and you should never have more than one layout-file? Thanks in advance! / Jan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Jan, Let me think 🤔 I know that you can do something like
It's perfectly fine to have more than one layout file. It's even mentioned in the docs here. Hope that helps! |
Beta Was this translation helpful? Give feedback.
Hi Jan,
Let me think 🤔
I know that you can do something like
template: '@blueprint'
(link to docs). Maybe do some kind of conditional in the blueprint then? More on that here.It's perfectly fine to have more than one layout file. It's even mentioned in the docs here.
Hope that helps!