Skip to content

Commit

Permalink
sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
aasanchez committed Oct 14, 2024
1 parent c0be427 commit c361ee8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions site/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ const config: Config = {
trackingID: 'G-SJNZWPL46',
anonymizeIP: true,
},
sitemap: {
lastmod: 'date',
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
createSitemapItems: async (params) => {
const {defaultCreateSitemapItems, ...rest} = params;
const items = await defaultCreateSitemapItems(rest);
return items.filter((item) => !item.url.includes('/page/'));
},
},
} satisfies Preset.Options,
],
],
Expand Down

0 comments on commit c361ee8

Please sign in to comment.