1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 20:21:50 +02:00

Remove lastmod from sitemap

This commit is contained in:
Kamran Ahmed
2023-01-20 16:47:58 +04:00
parent 4aca07e3d4
commit a28204c908

View File

@@ -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(),
}; };
} }