feat: add tag page

This commit is contained in:
Devin Haska 2024-02-07 10:26:55 -08:00
parent 210a278ab1
commit 5e72b839fe
5 changed files with 52 additions and 3 deletions

View file

@ -1,6 +1,7 @@
const {
getAllPosts,
getAllPostCategories,
getPostsByCategory,
} = require("./config/collections/index.js");
const { dir } = require("./config/constants.js");
const {
@ -22,6 +23,7 @@ module.exports = (eleventyConfig) => {
eleventyConfig.addCollection("posts", getAllPosts);
eleventyConfig.addCollection("categories", getAllPostCategories);
eleventyConfig.addCollection("postsByCategory", getPostsByCategory);
// --------------------- Custom Filters -----------------------
eleventyConfig.addFilter("entries", entries);