From 99d98566b7357de5d4898830b43c63b4c60edd68 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 29 Nov 2021 14:48:03 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E7=9B=AE=E5=BD=95=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/SearchInput.js | 2 +- components/SideBar.js | 4 ++++ components/Toc.js | 6 +----- components/TocDrawer.js | 21 ++++++++++++-------- components/TocDrawerButton.js | 7 +++---- components/TopNav.js | 2 +- layouts/BaseLayout.js | 36 ++++++++++++++++++++++++----------- pages/article/[slug].js | 2 +- 8 files changed, 49 insertions(+), 31 deletions(-) diff --git a/components/SearchInput.js b/components/SearchInput.js index 9ef4f138..c9462b59 100644 --- a/components/SearchInput.js +++ b/components/SearchInput.js @@ -49,7 +49,7 @@ const SearchInput = ({ currentTag, currentSearch }) => {
{ handleSearch(searchKey) }}> - +
} diff --git a/components/SideBar.js b/components/SideBar.js index ce1ac741..6b4eb05a 100644 --- a/components/SideBar.js +++ b/components/SideBar.js @@ -69,6 +69,10 @@ const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory }) {post && (
+
+ 文章目录 +
)} diff --git a/components/Toc.js b/components/Toc.js index 9ff24e14..15aedbc3 100644 --- a/components/Toc.js +++ b/components/Toc.js @@ -50,11 +50,7 @@ const Toc = ({ toc }) => { setActiveSection(currentSectionId) }, throttleMs)) - return
-
- 文章目录 -
+ return