add line to remove structural tags

This commit is contained in:
2026-03-27 11:54:48 -07:00
parent 8adb83d8a8
commit bf677c3cdf

View File

@ -271,6 +271,8 @@ in `eleventy.config.js`:
eleventyConfig.addCollection("tagPagination", function(collection) { eleventyConfig.addCollection("tagPagination", function(collection) {
// Get unique list of tags // Get unique list of tags
let tagSet = new Set(collection.getAllSorted().flatMap((post) => post.data.tags || [])); let tagSet = new Set(collection.getAllSorted().flatMap((post) => post.data.tags || []));
// Remove "structural" tags
tagSet = tagSet.difference(new Set(["posts"]));
// Get each item that matches the tag // Get each item that matches the tag
let paginationSize = 6; let paginationSize = 6;