If I open a note, the header at the top of the tab contains the path, e.g.
Public/my note
Private/my personal note
I want to CSS color the path, based on if it contains text, to make it clear if a note is public.
step 1¶
CSS snippets let me color it, but now it always colors.
Public / my note
Private / my personal note
step 2¶
use the javascript init
plugin to run javascript code on Obsidian startup.
this works, but our custom javascript code doesn’t work yet