Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Markdown header area

Started by Muut Archive 12 years ago · 1 replies · 388 views
12 years ago

Is there a way that I can create my own header item for use in my twig template.

12 years ago

of course, that's built-in. Documented in the docs here

TXT
custom_field: 'some value'

and then in the Twig you can access that like this:

TWIG
{{ page.header.custom_field }}

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2604 9 years ago
Archive · by Muut Archive, 9 years ago
2 1711 9 years ago
Archive · by Muut Archive, 9 years ago
2 5008 9 years ago
Archive · by Muut Archive, 9 years ago
1 3836 9 years ago
Archive · by Muut Archive, 9 years ago
3 1818 9 years ago