diff options
author | indrajith | 2022-10-01 14:07:36 +0000 |
---|---|---|
committer | indrajith | 2022-10-01 14:07:36 +0000 |
commit | 9665f6dcf69b2c4ad15503db638bb2b82e78893a (patch) | |
tree | b8e926cc11720710d62ddc0d2ff2e0a8860171ee /.eleventy.js | |
parent | 98e0a1608cee0ae07da475aee3436846b2b109d9 (diff) | |
parent | bb50c7e11835154576c6f7a2a40cf2aaee6f4c60 (diff) | |
download | indrajith-dev-9665f6dcf69b2c4ad15503db638bb2b82e78893a.tar.gz indrajith-dev-9665f6dcf69b2c4ad15503db638bb2b82e78893a.tar.bz2 indrajith-dev-9665f6dcf69b2c4ad15503db638bb2b82e78893a.zip |
Merge pull request 'Theming & Page Changes' (#1) from feature/theming into master
Reviewed-on: https://git.indrajith.dev/indrajith/indrajith.dev/pulls/1
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", |