PageDecoration feedback: Not working with tag frontmatter

I’ve just tried out the PageDecoration. I find that you have to place the tag at tags frontmatter to make it work, the decoration won’t show if you specify as following:

pageDecorations:
- where: "tag = 'person'"
  prefix: "🧑 "

Using both tag and tagsare all intended usage I think.

Not really. This is not specific to decorations. The tag of a page is always page, it’s the tags attribute that contains the tags. And = on a list attribute checks if the value is contains within. So tags = "person" is what you’re looking for.

Hi, @zef , thanks for the reply.

So I can’t change the tag attribute via frontmatter right? I thought it was the attribute exposed to customize the type of pages for something like OOP style thing.

I’d have to check what happens exactly when you try, but I wouldn’t recommend it. Consider tag a hardcoded attribute that’s page for pages (and item for list items, task for tasks etc.)

1 Like

Okey, nice to learn about this!

1 Like