11 lines
285 B
JavaScript
11 lines
285 B
JavaScript
|
|
|
||
|
|
export const setupFeedCollections = eleventyConfig => {
|
||
|
|
eleventyConfig.addCollection("feedDesc", api => {
|
||
|
|
const posts = api.getFilteredByTag('feed')
|
||
|
|
return posts
|
||
|
|
.sort((a, b) => {
|
||
|
|
return b.date < a.date ? -1 : 1
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|