fix(theme): incorrect generate for notes permalink

This commit is contained in:
pengzhanbo 2024-08-27 10:44:31 +08:00
parent 55b96875b1
commit b37de62121

View File

@ -104,7 +104,7 @@ export function resolveOptions(
const prefix = notesByLocale(locale)?.link || ''
const note = findNote(relativePath)
return pathJoin(
locale,
prefix.startsWith(locale) ? '/' : locale,
prefix,
note?.link || getCurrentDirname(note?.dir, relativePath),
'/',