Custom CSSClass per Tag

Hello,

i want to set a custom header color per Tag.
I got this on my Settings:

- where: 'status = "TODO"'
  attributes:
     pageDecoration.cssClasses: 
       - todo

but it is not working, only when i set it in the frontmatter of the specific page, but i want it to change dynamically via the status attribute. what am i doing wrong? also is it possible to set another pageDecoration attribute eg pageDecoration.prefix?

This is the answer

2 Likes