Every Post (content with Post Type enabled) theme file inherits from the theme Layout. This is a theme file where you put the <head>
HTML tags, and all other stuff that needs to be shown on every web page of your site. The default theme layout is theme
(theme file: theme.plate
). You invoke the rest of the Plate content (scaffolding the Plate layout structure) by calling the {{ content_for_layout }}
variable.
...
You are required to include the following tag in the theme layout file’s <head>
:{% include "content_for_head" %}
This adds all Plate dependencies, like all assets used when the site is in edit mode.
Note |
---|
Heads up! The Theme Layout is something else entirely than the Plate Nested Layout structure! |
404
By creating the theme file layouts/404.plate
you can create a custom 404 Page.