diff --git a/lib/config.js b/lib/config.js index b690c1ae..2d46b6fb 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 c872941b..cfe65c16 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}