Closed pmartinezalvarez closed 7 years ago
Each custom layout will be stored into the theme _layouts folder, and will be assigned to a post or page using the layout front-matter variable.
_layouts
layout
Ex: A custom layout file like ./themes/my-theme/_layouts/book-details-page.eex will be applied to a page using the front matter:
./themes/my-theme/_layouts/book-details-page.eex
--- title: Moby-Dick date: 2017-05-18 06:45:22 layout: book-details-page ---
de90e9eaedefba30beb2fcfb9c811480c341fd13
Each custom layout will be stored into the theme
_layouts
folder, and will be assigned to a post or page using thelayout
front-matter variable.Ex: A custom layout file like
./themes/my-theme/_layouts/book-details-page.eex
will be applied to a page using the front matter: