add line to remove structural tags
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user