mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(theme): sidebar prefix validation completion (#208)
This commit is contained in:
parent
04f488e349
commit
a11166de6e
@ -179,7 +179,10 @@ function getAllSidebar(localeOptions: PlumeThemeLocaleOptions): Record<string, S
|
||||
for (const [locale, opt] of entries(localeOptions.locales || {})) {
|
||||
const notes = locale === '/' ? (opt.notes || localeOptions.notes) : opt.notes
|
||||
const sidebar = locale === '/' ? (opt.sidebar || localeOptions.sidebar) : opt.sidebar
|
||||
locales[locale] = { ...sidebar }
|
||||
locales[locale] = {}
|
||||
for (const [key, value] of entries(sidebar || {})) {
|
||||
locales[locale][normalizeLink(key)] = value
|
||||
}
|
||||
|
||||
if (notes && notes.notes?.length) {
|
||||
const prefix = notes.link || ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user