fix 伪静态 index url 异常

This commit is contained in:
tangly1024.com
2024-06-17 10:53:26 +08:00
parent 3097961fac
commit eff31009c7

View File

@@ -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'
}