From cb5a56a8a365cb9d6bd10547c62c45a79199a5d7 Mon Sep 17 00:00:00 2001 From: David Benque Date: Fri, 6 Dec 2024 10:24:05 +0000 Subject: [PATCH] Fix alltags mess --- .eleventy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 9fd57a2f..66581d5b 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -79,8 +79,8 @@ module.exports = (function(eleventyConfig) { item.data.tags.map( tag => tagsSet.add(tag)) } }); - const tagsList = Array.from(tagsSet).sort() - return tagsList; + const sortedSet = new Set(Array.from(tagsSet).sort()); + return sortedSet; }); // set nunjucks as markdown template engine // could be useful for custom processing like mermaid