From b4ea0fcc5dadcd3a2984e6e51a899a734ca0ebdc Mon Sep 17 00:00:00 2001 From: melindafekete Date: Wed, 6 Nov 2024 17:36:19 +0100 Subject: [PATCH] Add lastmod to sitemap --- website/docusaurus.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 78829920dd30..4dd9ba4cc423 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -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/')); + }, + }, }, ], ],