I know how to change tag color if the tag contains specific keywords. However I wonder if there’s a way to change tags style when I link to a date? (basically using logseq-datetag-plugin, I don’t want the tag to be showed like normal tag)
a.tag[<if_tag_contains_date>] { /* <- Is there a way to do this */
align-items: center;
background: var(--ls-color-clouds);
border-radius: 1rem 0.4rem 0.4rem 1rem;
color: var(--ls-primary-background-color);
...
}
Generating dates based on the date format is difficult outside of plugins, and date links themselves have no flags. However, if the date format you are using has certain characteristics, it may be possible. What format are you using?