1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-27 02:54:27 +02:00

Remove upcoming page from sitemap

This commit is contained in:
Kamran Ahmed
2022-09-08 20:29:59 +04:00
parent fb45c91364
commit efc9b6d650
2 changed files with 5 additions and 6 deletions

View File

@@ -300,12 +300,7 @@
<lastmod>2022-08-04T14:33:07.901Z</lastmod>
<priority>0.5</priority>
</url>
<url>
<loc>https://roadmap.sh/upcoming</loc>
<changefreq>monthly</changefreq>
<lastmod>2022-09-08T13:34:10.428Z</lastmod>
<priority>0.5</priority>
</url>
<url>
<loc>https://roadmap.sh/watch</loc>
<changefreq>monthly</changefreq>

View File

@@ -75,6 +75,10 @@ function generateNode(nodeProps) {
frequency = 'monthly',
} = nodeProps;
if (slug.includes('upcoming')) {
return null;
}
const pagePath = path.join(basePath, fileName);
let pageStats = {};
try {