Remove upcoming page from sitemap

pull/1719/head
Kamran Ahmed 2 years ago
parent fb45c91364
commit efc9b6d650
  1. 7
      public/sitemap.xml
  2. 4
      scripts/sitemap.js

@ -300,12 +300,7 @@
<lastmod>2022-08-04T14:33:07.901Z</lastmod> <lastmod>2022-08-04T14:33:07.901Z</lastmod>
<priority>0.5</priority> <priority>0.5</priority>
</url> </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> <url>
<loc>https://roadmap.sh/watch</loc> <loc>https://roadmap.sh/watch</loc>
<changefreq>monthly</changefreq> <changefreq>monthly</changefreq>

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

Loading…
Cancel
Save