The rest of the owl
This commit is contained in:
10
scripts/eleventy/feed.js
Normal file
10
scripts/eleventy/feed.js
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
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
|
||||
})
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user