Hi.
I would like to use a custom class in the archives plugin, specifically the following:
<span class = “{{taxonomy_color}}”>
And in blog.html.twig:
{% set taxonomy_color = page.header.content.taxonomy_color %}
I have the following in the blog blueprint:
header.content.taxonomy_color:
type: select
label: Taxonomy color
size: small
options:
blue: 'Blue'
green: 'Green'
yellow: 'Yellow'
orange: 'Orange'
Am I defining the variable in the correct file, or should I define it in partials / archives.html.twig ?. I have tried both and it doesn’t work.
Where should I define this variable?
Thanks