From 67a0a649a8b8bc861af4095ae98655751c214ba2 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Thu, 9 Nov 2023 14:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ThemeSwitch.js | 4 ++-- lib/config.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 } }