Those who’ve been with us for some time remember the pattern of putting emojis in page names to visually distinguish them. For instance, one would put a emoji in front of page names that represent books. Since then I’ve slowly stepped away from this pattern (I put them in a folder now), but still miss the visual distinction that this brought.
Enter page decorations:
You can now “decorate” page names (and maybe other aspects later) with a prefix, for instance an emoji. You can do this using arbitrary query expressions, such as where: "tags = 'book'" to apply it to all pages tagged with #book.
It’s an initial implementation (first pass done by Deepak), so give it a try and see if it works (or if it breaks things that it shouldn’t).
Looks good! have just noticed one issue I believe with pages in subfolder/paths inheriting the prefix of the higher-level page, only in templates though. This is the most concise template I could come up with to demonstrate:
So in the case of:
/page1 has a number 1 emoji prefix
/page1/page2 has a number 2 emoji prefix
{{#each {page where name =~ /^test1/ }}}
[[{{name}}]] Actual prefix:{{pageDecoration.prefix}} {{name}}
{{/each}}
Which renders to this (note incorrect prefix on test2 link)
test1 Actual prefix: test1
test2 Actual prefix: test1/test2