From 3078c6b4fa8a77a1e3878100b3e082b1ef49d691 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 2 Dec 2024 13:33:15 +0800 Subject: [PATCH] =?UTF-8?q?link=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/config.js | 6 ++++++ themes/gitbook/components/BottomMenuBar.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/config.js b/lib/config.js index b690c1aeb70..2d46b6fb476 100644 --- a/lib/config.js +++ b/lib/config.js @@ -38,6 +38,12 @@ export const siteConfig = (key, defaultVal = null, extendConfig = {}) => { case 'TAG_SORT_BY_COUNT': case 'THEME': case 'LINK': + // LINK比较特殊, + if (key === 'LINK') { + if (!extendConfig || Object.keys(extendConfig).length === 0) { + break + } + } return convertVal( getValue(extendConfig[key], getValue(defaultVal, BLOG[key])) ) diff --git a/themes/gitbook/components/BottomMenuBar.js b/themes/gitbook/components/BottomMenuBar.js index c872941b56b..cfe65c1673a 100644 --- a/themes/gitbook/components/BottomMenuBar.js +++ b/themes/gitbook/components/BottomMenuBar.js @@ -28,7 +28,7 @@ export default function BottomMenuBar({ post, className }) { onClick={togglePageNavVisible} className='inline-flex flex-col items-center justify-center px-5 border-gray-200 border-x hover:bg-gray-50 dark:hover:bg-gray-800 group dark:border-gray-600'> - + {locale.COMMON.ARTICLE_LIST}