From efc9b6d650de31529bc878a1509d1ee5586b5064 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 8 Sep 2022 20:29:59 +0400 Subject: [PATCH] Remove upcoming page from sitemap --- public/sitemap.xml | 7 +------ scripts/sitemap.js | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/public/sitemap.xml b/public/sitemap.xml index 5037d1ef2..43570ec1c 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -300,12 +300,7 @@ 2022-08-04T14:33:07.901Z 0.5 - - https://roadmap.sh/upcoming - monthly - 2022-09-08T13:34:10.428Z - 0.5 - + https://roadmap.sh/watch monthly diff --git a/scripts/sitemap.js b/scripts/sitemap.js index 5c1885a86..c2b9f82cf 100644 --- a/scripts/sitemap.js +++ b/scripts/sitemap.js @@ -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 {