Update to Eleventy v3 #11

Merged
wonderfulfrog merged 56 commits from feat/11ty-v3 into main 2025-01-27 18:23:38 -08:00
Showing only changes of commit 672e97fc87 - Show all commits

View file

@ -29,14 +29,6 @@ export const organizeByDate = (collection) => {
return collectionByDate;
};
const allTags = (collection, ignore = []) => {
const tagSet = new Set(collection.flatMap((item) => item.data.tags));
ignore.forEach((tag) => tagSet.delete(tag));
return [...tagSet];
};
export const allTagCounts = (collection, ignore = ["post"]) => {
if (!collection.length) {
throw new Error("Invalid collection, no items");