fix(theme): incorrect notes auto frontmatter permalink

This commit is contained in:
pengzhanbo 2024-08-26 13:39:53 +08:00
parent 543f6ea66f
commit b55a0f7546
2 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,7 @@ export function resolveOptions(
const note = findNote(relativePath)
const prefix = notes?.link || ''
const args: string[] = [
locale,
prefix.startsWith(locale) ? '/' : locale,
prefix,
note?.link || '',
]

View File

@ -78,6 +78,7 @@ export function plumeTheme(options: PlumeThemeOptions = {}): Theme {
await prepareData(app)
})
const { localeOptions } = await waitForConfigLoaded()
await waitForAutoFrontmatter()
await prepareThemeData(app, localeOptions)
await prepareData(app)
},