in site/latest.11ty.tsx [10:34]
data() {
return {
eleventyExcludeFromCollections: true,
layout: "",
title: "Latest",
subtitle: " All the resources in the Guide, starting with most recent.",
pagination: {
data: "collections.all",
size: 12,
reverse: true,
before: function (paginationData: any[], fullData: any) {
const results: Resource[] = [];
const { resourceMap } = fullData.collections;
let thisItem: any;
paginationData.forEach((item: any) => {
thisItem = resourceMap.get(item.url);
if (thisItem) {
results.push(thisItem);
}
});
return results;
},
},
};
}