From eff31009c728f93134c5b5d531b2a90a7e64550a Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 17 Jun 2024 10:53:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BC=AA=E9=9D=99=E6=80=81=20index=20url?= =?UTF-8?q?=20=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getPageProperties.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/notion/getPageProperties.js b/lib/notion/getPageProperties.js index ab9e1bd1..d3cbc2fb 100644 --- a/lib/notion/getPageProperties.js +++ b/lib/notion/getPageProperties.js @@ -192,7 +192,10 @@ export function adjustPageProperties(properties, NOTION_CONFIG) { if (siteConfig('PSEUDO_STATIC', false, NOTION_CONFIG)) { if ( !properties?.href?.endsWith('.html') && - !properties?.href?.startsWith('http') + !properties?.href?.startsWith('http') && + properties?.href !== '' && + properties?.href !== '#' && + properties?.href !== '/' ) { properties.href += '.html' }