1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-28 11:39:52 +02:00

Add support for link-groups

This commit is contained in:
Kamran Ahmed
2023-02-20 16:59:02 +00:00
parent 8200993af4
commit b741a0e1ee
7 changed files with 117 additions and 10 deletions

View File

@@ -9,13 +9,14 @@ async function getBestPracticesIds() {
return fs.readdir(path.join(process.cwd(), 'src/best-practices'));
}
export function shouldIndexPage(page) {
export function shouldIndexPage(pageUrl) {
return ![
'https://roadmap.sh/404',
'https://roadmap.sh/terms',
'https://roadmap.sh/privacy',
'https://roadmap.sh/pdfs',
].includes(page);
'https://roadmap.sh/g',
].includes(pageUrl);
}
export async function serializeSitemap(item) {