About Themes and Layout when developping a new theme #1885
-
Hello @ArnaudLigny , I'm wondering when I develop a theme how can I say that, for example, the Currently, the only way I found is to set in my blog post in Markdown If I don't do this, the I'm pretty sure there is another way more smart to do this. Could you help me, please ? See you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @happytodev, you must see a theme as "default" layouts (and assets) used to render pages. So, you don't need local layouts, unless you want to override a theme layouts. In your example you should have:
|
Beta Was this translation helpful? Give feedback.
Hello @happytodev, you must see a theme as "default" layouts (and assets) used to render pages. So, you don't need local layouts, unless you want to override a theme layouts.
In your example you should have:
themes/<theme>/layouts/blog/page.html.twig
is used to render blog postslayouts/blog/page.html.twig
if you want to replace the theme blog/post layout, otherwise it's not needed