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