diff options
author | Indrajith K L | 2022-09-30 18:19:17 +0530 |
---|---|---|
committer | Indrajith K L | 2022-09-30 18:19:17 +0530 |
commit | aaa2da4e22be420891a00bb1b33bdfc431db80bd (patch) | |
tree | 11ce3f8da6d0307ee3be8c41a3579a60a0c608d5 /.eleventy.js | |
parent | 0664c2c30cb90da2156e83cf18526438e2e5ff57 (diff) | |
download | indrajith-dev-aaa2da4e22be420891a00bb1b33bdfc431db80bd.tar.gz indrajith-dev-aaa2da4e22be420891a00bb1b33bdfc431db80bd.tar.bz2 indrajith-dev-aaa2da4e22be420891a00bb1b33bdfc431db80bd.zip |
Theming: IN-PROGRESS
Diffstat (limited to '.eleventy.js')
-rw-r--r-- | .eleventy.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.eleventy.js b/.eleventy.js index 2a2b255..3089f6c 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -32,6 +32,12 @@ module.exports = function (config) { return dayjs(date).format("DD MMM YYYY"); }); + function filterTagList(tags) { + return (tags || []).filter(tag => ["all", "nav", "post", "posts"].indexOf(tag) === -1); + } + + config.addFilter("filterTagList", filterTagList) + return { dir: { input: "src", |