Skip to content

Instantly share code, notes, and snippets.

@twhite96
Last active August 21, 2023 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twhite96/6baef671e86d9374758565ce6f8b6edd to your computer and use it in GitHub Desktop.
Save twhite96/6baef671e86d9374758565ce6f8b6edd to your computer and use it in GitHub Desktop.
docusaurus blog option
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