diff --git a/components/ThemeSwitch.js b/components/ThemeSwitch.js index d3913d30..5ec52819 100644 --- a/components/ThemeSwitch.js +++ b/components/ThemeSwitch.js @@ -38,9 +38,9 @@ const ThemeSwitch = () => {
{/* 深色按钮 */} -
+
-
{isDarkMode ? locale.MENU.DARK_MODE : locale.MENU.LIGHT_MODE}
+
{isDarkMode ? locale.MENU.DARK_MODE : locale.MENU.LIGHT_MODE}
{/* 翻译按钮 */} diff --git a/lib/config.js b/lib/config.js index f2cf817d..cd58187c 100644 --- a/lib/config.js +++ b/lib/config.js @@ -43,6 +43,9 @@ export const siteConfig = (key, defaultVal = null, extendConfig) => { case 'TITLE': val = siteInfo?.title // 标题取Notion中的标题 break + case 'DESCRIPTION': + val = siteInfo?.description // 标题取Notion中的标题 + break } }