Overview
📙 What you'll learn about
Locate Layout files
src/views/layouts/
folder.
Master layout hooks
Using layouts
blocks
inside it for future content. These future contents will be filled by the page that will inherit this layout page.Information
src/views/layouts/master.twig
.Embed theme pages within the layout.
mylayout.twig
file where we define three blocks: head
, title
and footer
.
head
, title
and footer
.
Build a new layout
src\views\layouts\
. This step will make the layout available throughout the theme pages.*.twig
files.*.twig
, that contains the main skeleton of your theme with creating blocks
inside it for future contents.blocks
.