From d92a22a5caaa16e13731177fe484a195340802c4 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 30 Jun 2023 16:56:49 +0800 Subject: [PATCH] gitbook - footer --- themes/gitbook/LayoutBase.js | 17 ++++++++++------- themes/gitbook/components/Footer.js | 18 +++++++++--------- themes/gitbook/components/NavPostList.js | 2 +- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/themes/gitbook/LayoutBase.js b/themes/gitbook/LayoutBase.js index 10a9f7bd..071a68a0 100644 --- a/themes/gitbook/LayoutBase.js +++ b/themes/gitbook/LayoutBase.js @@ -27,7 +27,7 @@ const ThemeGlobalMedium = createContext() * @constructor */ const LayoutBase = (props) => { - const { children, meta, post, allNavPages, slotLeft, slotRight, slotTop, siteInfo } = props + const { children, meta, post, allNavPages, slotLeft, slotRight, slotTop } = props const [tocVisible, changeTocVisible] = useState(false) const [pageNavVisible, changePageNavVisible] = useState(false) const [filterPosts, setFilterPosts] = useState(allNavPages) @@ -58,7 +58,7 @@ const LayoutBase = (props) => { {/* 左侧推拉抽屉 */} - + diff --git a/themes/gitbook/components/Footer.js b/themes/gitbook/components/Footer.js index 744f9e61..a5ef6f8f 100644 --- a/themes/gitbook/components/Footer.js +++ b/themes/gitbook/components/Footer.js @@ -1,8 +1,7 @@ import React from 'react' import BLOG from '@/blog.config' -import DarkModeButton from '@/components/DarkModeButton' -const Footer = ({ title }) => { +const Footer = ({ siteInfo }) => { const d = new Date() const currentYear = d.getFullYear() const copyrightDate = (function () { @@ -14,23 +13,24 @@ const Footer = ({ title }) => { return ( ) diff --git a/themes/gitbook/components/NavPostList.js b/themes/gitbook/components/NavPostList.js index 0ef304d2..5eeeec2c 100644 --- a/themes/gitbook/components/NavPostList.js +++ b/themes/gitbook/components/NavPostList.js @@ -36,7 +36,7 @@ const NavPostList = (props) => { if (!filteredPosts || filteredPosts.length === 0) { return } else { - return
+ return
{/* 文章列表 */} {filteredPosts?.map((group, index) => )}