Skip to content

Commit

Permalink
Add lastmod to sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
melindafekete committed Nov 6, 2024
1 parent f5eafe6 commit b4ea0fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,16 @@ const config: Config = {
googleTagManager: {
containerId: 'GTM-KV5PRR2',
},
sitemap: {
lastmod: 'datetime',
changefreq: 'weekly',
priority: 0.5,
createSitemapItems: async (params) => {
const {defaultCreateSitemapItems, ...rest} = params;
const items = await defaultCreateSitemapItems(rest);
return items.filter((item) => !item.url.includes('/page/'));
},
},
},
],
],
Expand Down

0 comments on commit b4ea0fc

Please sign in to comment.