feat: finish index page

This commit is contained in:
Devin Haska 2024-02-23 11:55:16 -08:00
parent 2a5f17375b
commit 2d4ff7b11c
8 changed files with 43 additions and 11 deletions

View file

@ -87,12 +87,17 @@ const filterCatalogueTags = (tags) => {
const limit = (collection, limit = 5) => collection.slice(0, limit);
const filterFavourites = (collection) => {
return collection.filter((item) => item.data.favourite);
};
module.exports = {
allTagCounts,
allTags,
entries,
filter,
filterCatalogueTags,
filterFavourites,
formatDate,
keys,
limit,