mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-04 12:00:02 +00:00
Add new attribute to tags (#84)
The new attribute makes it easier to apply custom styles to specific tags with CSS
This commit is contained in:
parent
18b4be3d43
commit
f35dec903a
@ -211,7 +211,7 @@ module.exports = function (eleventyConfig) {
|
||||
return (
|
||||
str &&
|
||||
str.replace(tagRegex, function (match, precede, tag) {
|
||||
return `${precede}<a class="tag" onclick="toggleTagSearch(this)">${tag}</a>`;
|
||||
return `${precede}<a class="tag" onclick="toggleTagSearch(this)" data-content="${tag}">${tag}</a>`;
|
||||
})
|
||||
);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user