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:
@@ -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(),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user