fix: filter article tags
parent
915bac6dab
commit
667aca6306
|
@ -78,7 +78,7 @@ module.exports = function(eleventyConfig) {
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addFilter("filterTagList", function filterTagList(tags) {
|
eleventyConfig.addFilter("filterTagList", function filterTagList(tags) {
|
||||||
return (tags || []).filter(tag => ["all", "nav", "post", "posts"].indexOf(tag) === -1);
|
return (tags || []).filter(tag => ["all", "nav", "article", "articles"].indexOf(tag) === -1);
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addFilter("readableAuthors", (authors) => {
|
eleventyConfig.addFilter("readableAuthors", (authors) => {
|
||||||
|
|
Loading…
Reference in New Issue