Use 'dates' for the experiences

This commit is contained in:
TheThomaas 2025-05-04 16:56:13 +02:00
parent 045992946b
commit 8154b01677

View file

@ -24,7 +24,7 @@ export default async function (eleventyConfig) {
eleventyConfig.addCollection('experiences', collection => {
return [...collection.getFilteredByGlob('./src/experiences/*.md')]
.sort((a, b) => a.data.startDate - b.data.startDate).reverse();
.sort((a, b) => a.data.dates.start - b.data.dates.start).reverse();
});
eleventyConfig.addPassthroughCopy('src/favicon.ico')