Closed wcDogg closed 8 months ago
Got a working answer from Stack Overflow. Here is the modified filter:
eleventyConfig.addFilter("getAllTags", collection => {
let tagSet = new Set();
for(let item of collection) {
(item.data.tags || []).forEach(tag => tagSet.add(tag.toLowerCase()));
}
return Array.from(tagSet).sort();
});
Hello and thanks for a great project !
I'm using the
getAllTags
andfilterTagList
filters and they work as expected. However, I would like to:Output Conflict
from tags likeJavascript
,JavaScript
, andjavascript
.I stink at JS and after several hours of trying, I must admit defeat. Any guidance would be much appreciated :)