feat: update tags to order by count
This commit is contained in:
parent
58d679d3c9
commit
2eed920716
10 changed files with 72 additions and 40 deletions
|
@ -36,8 +36,13 @@ const organizeByDate = (collection) => {
|
|||
return collectionByDate;
|
||||
};
|
||||
|
||||
const filterByCategory = (collection, category) => {
|
||||
return collection.filter((item) => item.data.categories.includes(category));
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
entries,
|
||||
filterByCategory,
|
||||
formatDate,
|
||||
keys,
|
||||
minifyCss,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue