Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lastmod to sitemap #8681

Merged
merged 11 commits into from
Nov 8, 2024
Prev Previous commit
Next Next commit
Fix linting issue docusaurus
melindafekete committed Nov 7, 2024
commit 91c1384713486bb0836bed6bf78cf2b8febf9c03
10 changes: 6 additions & 4 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -310,11 +310,13 @@ const config: Config = {
lastmod: 'date',
priority: 0.5,
createSitemapItems: async (params) => {
const {defaultCreateSitemapItems, ...rest} = params;
const items = await defaultCreateSitemapItems(rest);
return items.filter((item) => !item.url.includes('/page/'));
const { defaultCreateSitemapItems, ...rest } = params;
const items = await defaultCreateSitemapItems(rest);
return items.filter(
(item) => !item.url.includes('/page/'),
);
},
},
},
},
],
],