diff --git a/config/filters/filterBy.js b/config/filters/filterBy.js index 348f9ae..7ea3c0d 100644 --- a/config/filters/filterBy.js +++ b/config/filters/filterBy.js @@ -4,4 +4,10 @@ module.exports = (eleventyConfig) => { return item.data.tags.includes(value); }) }); + + eleventyConfig.addFilter('except', (collection, value) => { + return collection.filter((item) => { + return item !== value; + }) + }); } \ No newline at end of file diff --git a/src/_includes/post.njk b/src/_includes/post.njk index 2268e83..2778125 100644 --- a/src/_includes/post.njk +++ b/src/_includes/post.njk @@ -9,11 +9,12 @@ includePrism: true