feat: add tag page
This commit is contained in:
parent
210a278ab1
commit
5e72b839fe
5 changed files with 52 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue