mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
fix 伪静态 index url 异常
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user