Skip to content

Commit

Permalink
index json feed
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierRLopes committed Mar 24, 2024
1 parent 08304f3 commit f2bd8d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ const config = {
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/DidierRLopes/my-website/tree/main/',
feedOptions: {
type: 'all',
copyright: `Copyright © ${new Date().getFullYear()} Didier Lopes.`,
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,
});
},
},
},
theme: {
customCss: ['./src/css/custom.css'],
Expand Down

0 comments on commit f2bd8d0

Please sign in to comment.