Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Markdown header area

Started by Muut Archive 12 years ago · 1 replies · 458 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 Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago