Update getTagList.js

This commit is contained in:
Mathias Bynens 2018-09-13 13:12:49 +02:00 committed by GitHub
parent 619538df79
commit 0012d51d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ module.exports = function(collection) {
tags = [tags]; tags = [tags];
} }
tags.filter(function(item) { tags = tags.filter(function(item) {
switch(item) { switch(item) {
// this list should match the `filter` list in tags.njk // this list should match the `filter` list in tags.njk
case "all": case "all":
@ -19,6 +19,7 @@ module.exports = function(collection) {
return true; return true;
}); });
tagSet.add(...tags); tagSet.add(...tags);
} }
}); });