Hi, i am using taxonomies to categorise my content. Now I would like to style each category differently. so lets say all posts with 'taxonomy: category: - apple' have a green background. And all 'taxonomy: category: - berry' have a red background.
How can I use the category name as a class for styling?
I tried in de base.thml.twig:
<body class="{{ page.header.taxonomy.category }}">
but that doesnt work 😭
How do I do this?
Thanks for help!