From f13ce77cd54a25123ab1176b9e5eda5cbdb43919 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 3 Dec 2021 17:18:53 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=8E=92=E7=89=88=E5=BE=AE=E8=B0=83?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=96=87=E7=AB=A0=E6=98=93=E8=AF=BB?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CategoryGroup.js | 2 +- components/Comment.js | 8 +- components/JumpToTopButton.js | 23 ++--- components/LatestPostsGroup.js | 4 +- components/RecommendPosts.js | 2 +- components/RewardButton.js | 3 +- components/SearchInput.js | 2 +- components/ShareBar.js | 16 +-- components/SideBar.js | 10 +- components/TocDrawer.js | 2 +- components/TocDrawerButton.js | 10 +- layouts/BaseLayout.js | 16 ++- pages/article/[slug].js | 180 ++++++++++++++++----------------- 13 files changed, 131 insertions(+), 147 deletions(-) diff --git a/components/CategoryGroup.js b/components/CategoryGroup.js index 0c598f31..56323fc8 100644 --- a/components/CategoryGroup.js +++ b/components/CategoryGroup.js @@ -5,7 +5,7 @@ import React from 'react' const CategoryGroup = ({ currentCategory, categories }) => { return
-
+
{Object.keys(categories).map(category => { const selected = currentCategory === category return diff --git a/components/Comment.js b/components/Comment.js index cf31b7b2..d41d7de4 100644 --- a/components/Comment.js +++ b/components/Comment.js @@ -27,7 +27,6 @@ const Comment = ({ frontMatter }) => { const { theme } = useGlobal() return
- {/* 评论插件 */} {BLOG.comment.provider === 'gitalk' && (
{
)} - {BLOG.comment.provider === 'cusdis' && ( + {BLOG.comment.provider === 'cusdis' && (<> +