Last active
August 21, 2023 08:10
-
-
Save twhite96/6baef671e86d9374758565ce6f8b6edd to your computer and use it in GitHub Desktop.
docusaurus blog option
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feedOptions: { | |
type: 'all', | |
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, | |
createFeedItems: async (params) => { | |
const {blogPosts, defaultCreateFeedItems, ...rest} = params; | |
return defaultCreateFeedItems({ | |
// keep only the 10 most recent blog posts in the feed | |
blogPosts: blogPosts.filter((item, index) => index < 10), | |
...rest | |
}); | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment