Use 'dates' for the experiences
This commit is contained in:
parent
045992946b
commit
8154b01677
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue