Twig Globals
On this page
Herbie provides three global variables in Twig layouts. page and site are also available in content files; content is layout-only.
Global variables
| Variable | Type | Description |
|---|---|---|
| content | array | The rendered content with one or more content segments. Available only in layout files. |
| page | herbie\Page | The page object with its properties and methods. |
| site | herbie\Site | The site object with its properties and methods. |
Details on the properties of these objects are documented under Variables.