From 3a62c471276d65d800e7032bf7da805fc8a26adb Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 3 Jun 2024 18:15:48 +0800 Subject: [PATCH] =?UTF-8?q?gitbook=20=E4=B8=BB=E9=A2=98=E4=BA=BF=E7=82=B9?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/gitbook/components/Footer.js | 62 ++++++++++++++++++++--------- themes/gitbook/index.js | 22 +++++----- 2 files changed, 56 insertions(+), 28 deletions(-) diff --git a/themes/gitbook/components/Footer.js b/themes/gitbook/components/Footer.js index 78a91cd5..d0e2a150 100644 --- a/themes/gitbook/components/Footer.js +++ b/themes/gitbook/components/Footer.js @@ -4,30 +4,56 @@ const Footer = ({ siteInfo }) => { const d = new Date() const currentYear = d.getFullYear() const since = siteConfig('SINCE') - const copyrightDate = parseInt(since) < currentYear ? since + '-' + currentYear : currentYear + const copyrightDate = + parseInt(since) < currentYear ? since + '-' + currentYear : currentYear return ( - ) } diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js index 9fe1682e..89240a63 100644 --- a/themes/gitbook/index.js +++ b/themes/gitbook/index.js @@ -140,9 +140,8 @@ const LayoutBase = props => {
{/* 左侧推拉抽屉 */} {fullWidth ? null : ( @@ -150,16 +149,19 @@ const LayoutBase = props => { className={ 'hidden md:block border-r dark:border-transparent relative z-10 dark:bg-hexo-black-gray' }> -
- {slotLeft} - -
+
+ {/* 导航 */} +
+ {/* 嵌入 */} + {slotLeft} + {/* 搜索框 */} + + + {/* 文章列表 */} {/* 所有文章列表 */}
-
- -
+ {/* 页脚 */}