Post #1858819
2025-09-09 20:51 UTC
@chriskirknielsen If I may suggest, you could maybe, after your
`const allTags = ...`
add the following
` const listTags = allTags.filter((item, index) => allTags.indexOf(item) === index);` to get rid of duplicates. This may speed up the site generation.
Replies (1)
-
@chriskirknielsen@front-end.social 2025-09-09 20:55
@aloxe Glad it could help! Tags should be deduplicated with the use of `Array.from(new Set(...))`, as a `Set` deduplicates by design. Though it won't handle upper/lowercase if that's what you're after.