feat: add filter for omitting catalogue-specific tags
This commit is contained in:
parent
783cdb24b0
commit
d0450a8e0b
4 changed files with 12 additions and 2 deletions
|
@ -78,11 +78,19 @@ const pluralize = (string, count = 0) => {
|
|||
return pluralizeBase(string, count);
|
||||
};
|
||||
|
||||
const filterCatalogueTags = (tags) => {
|
||||
// In the case of catalogue items, the 0-index is "catalogue"
|
||||
// and the 1-index is the catalogueType. We don't need to
|
||||
// show those in the front-end.
|
||||
return filter(tags, [tags[0], tags[1]]);
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
allTagCounts,
|
||||
allTags,
|
||||
entries,
|
||||
filter,
|
||||
filterCatalogueTags,
|
||||
formatDate,
|
||||
keys,
|
||||
minifyCss,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue