1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-26 10:34:40 +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

@@ -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 {