mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 23:16:54 +00:00
post-url
This commit is contained in:
@@ -172,5 +172,9 @@ function generateCustomizeUrl(postProperties) {
|
|||||||
fullSlug += '/'
|
fullSlug += '/'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if (fullSlug.startsWith('/')) {
|
||||||
|
fullSlug = fullSlug.substring(1) // 去掉头部的"/"
|
||||||
|
}
|
||||||
|
|
||||||
return `${fullSlug}/${(postProperties.slug ?? postProperties.id)}`
|
return `${fullSlug}/${(postProperties.slug ?? postProperties.id)}`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user