From 84b2c0a4b0af22144ab98dd8c5be1bb38160c88f Mon Sep 17 00:00:00 2001 From: Xeu Date: Fri, 12 Jul 2024 00:09:44 +0800 Subject: [PATCH] ci: why seo failed --- scripts/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/render.ts b/scripts/render.ts index 9fc84484..6244ce38 100644 --- a/scripts/render.ts +++ b/scripts/render.ts @@ -82,7 +82,7 @@ async function fetchPage(url: string) { const anchors = Array.from(document.querySelectorAll('a')); return anchors.map(anchor => anchor.href); }); - for (const link of links.filter(link => (link.startsWith(baseUrl) || (containsKey !== '' && link.includes(containsKey))))) { + for (const link of links.filter(link => (link.startsWith(baseUrl) || (containsKey != '' && link.includes(containsKey))))) { const linkWithoutHash = link.split('#')[0]; if (fetchedLinks.has(linkWithoutHash)) { continue;