Remove lastmod from sitemap

pull/3333/head
Kamran Ahmed 2 years ago
parent 4aca07e3d4
commit a28204c908
  1. 7
      sitemap.mjs

@ -32,22 +32,17 @@ export async function serializeSitemap(item) {
// @ts-ignore // @ts-ignore
changefreq: 'monthly', changefreq: 'monthly',
priority: 1, priority: 1,
lastmod: new Date().toISOString(),
}; };
} }
} }
// Guide and video pages // Guide and video pages
if ( if (item.url.startsWith('https://roadmap.sh/guides/') || item.url.startsWith('https://roadmap.sh/videos/')) {
item.url.startsWith('https://roadmap.sh/guides/') ||
item.url.startsWith('https://roadmap.sh/videos/')
) {
return { return {
...item, ...item,
// @ts-ignore // @ts-ignore
changefreq: 'monthly', changefreq: 'monthly',
priority: 0.9, priority: 0.9,
lastmod: new Date().toISOString(),
}; };
} }

Loading…
Cancel
Save