From aaa2da4e22be420891a00bb1b33bdfc431db80bd Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Fri, 30 Sep 2022 18:19:17 +0530 Subject: Theming: IN-PROGRESS --- .eleventy.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.eleventy.js') 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", -- cgit v1.2.3