Skip to content

Commit

Permalink
Add new attribute to tags (#84)
Browse files Browse the repository at this point in the history
The new attribute makes it easier to apply custom styles to specific tags with CSS
  • Loading branch information
12-VidE authored Mar 2, 2023
1 parent 18b4be3 commit f35dec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>`;
})
);
});
Expand Down

0 comments on commit f35dec9

Please sign in to comment.