From abf5a2cf23fc0bfb742265667380a9fbcbfbafcd Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 18 Sep 2018 11:36:28 +0200 Subject: [PATCH] Fix set usage Fix #18. --- _11ty/getTagList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_11ty/getTagList.js b/_11ty/getTagList.js index f7f68a1..8b57265 100644 --- a/_11ty/getTagList.js +++ b/_11ty/getTagList.js @@ -20,7 +20,9 @@ module.exports = function(collection) { return true; }); - tagSet.add(...tags); + for (const tag of tags) { + set.add(tag); + } } });