I want to set the default value to “true” for a header variable. Is there any way to do this?
You can do it in twig with something like:
{{ page.header.var|default(true) }}
Huge thanks!
I want to set the default value to “true” for a header variable. Is there any way to do this?
You can do it in twig with something like:
{{ page.header.var|default(true) }}
Huge thanks!