feat: add watching section

This commit is contained in:
Devin Haska 2024-12-10 21:19:33 -08:00
parent 751b2f02b3
commit aa1a19b46d
22 changed files with 300 additions and 4 deletions

View file

@ -44,6 +44,11 @@ export default function (eleventyConfig) {
const byYear = transformByDate(data);
return byYear;
});
eleventyConfig.addCollection("moviesByYear", (collection) => {
const data = collection.getFilteredByTag("movie");
const byYear = transformByDate(data);
return byYear;
});
eleventyConfig.addCollection("catalogueByType", catalogueByType);
eleventyConfig.addCollection("postsByTag", postsByTag);