Files
www-ssg/scripts/eleventy/feed.js

11 lines
285 B
JavaScript
Raw Normal View History

2026-02-28 12:13:24 -06:00
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
})
})
}