From b2f122c4a2181c1bdcd2ca88c592552763dd289b Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Fri, 7 Jun 2024 21:01:05 +0800 Subject: [PATCH] fix(theme): auto navbar --- theme/src/node/config/resolveThemeData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theme/src/node/config/resolveThemeData.ts b/theme/src/node/config/resolveThemeData.ts index 425b7558..9adf7622 100644 --- a/theme/src/node/config/resolveThemeData.ts +++ b/theme/src/node/config/resolveThemeData.ts @@ -42,11 +42,11 @@ export function resolveThemeData(app: App, options: PlumeThemeLocaleOptions): Pl link: withBase(blogLink, locale), }) blog.tags !== false && navbar.push({ - text: PRESET_LOCALES[locale].tag, + text: PRESET_LOCALES[localePath].tag, link: withBase(blog.tagsLink || `${blogLink}/tags/`, locale), }) blog.archives !== false && navbar.push({ - text: PRESET_LOCALES[locale].archive, + text: PRESET_LOCALES[localePath].archive, link: withBase(blog.archivesLink || `${blogLink}/archives/`, locale), })