aboutsummaryrefslogtreecommitdiff
path: root/.eleventy.js
diff options
context:
space:
mode:
Diffstat (limited to '.eleventy.js')
-rw-r--r--.eleventy.js6
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",