feat: update catalogue to work with tags

This commit is contained in:
Devin Haska 2024-02-17 12:56:42 -08:00
parent 327b38f35b
commit 87deddd544
7 changed files with 48 additions and 8 deletions

View file

@ -1,4 +1,7 @@
const { postsByTag } = require("./config/collections/index.js");
const {
postsByTag,
catalogueByType,
} = require("./config/collections/index.js");
const { dir } = require("./config/constants.js");
const {
entries,
@ -7,8 +10,6 @@ const {
values,
organizeByDate,
keys,
filterByCategory,
allTags,
allTagCounts,
filter,
} = require("./config/filters/index.js");
@ -25,6 +26,7 @@ module.exports = (eleventyConfig) => {
// --------------------- Custom Collections -----------------------
eleventyConfig.addCollection("postsByTag", postsByTag);
eleventyConfig.addCollection("catalogueByType", catalogueByType);
// --------------------- Custom Filters -----------------------
eleventyConfig.addFilter("allTagCounts", allTagCounts);