From 3a9da4ed6aff6979f7e955e418480e7ee334e5e3 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 31 Jan 2024 16:23:48 +0800 Subject: [PATCH] =?UTF-8?q?Gitbook=E5=AF=BC=E8=88=AA=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/gitbook/components/BlogPostCard.js | 7 +++---- themes/gitbook/components/NavPostList.js | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/themes/gitbook/components/BlogPostCard.js b/themes/gitbook/components/BlogPostCard.js index 4dcd9686..04cf47c0 100644 --- a/themes/gitbook/components/BlogPostCard.js +++ b/themes/gitbook/components/BlogPostCard.js @@ -6,13 +6,12 @@ const BlogPostCard = ({ post, className }) => { const router = useRouter() const currentSelected = router.asPath.split('?')[0] === '/' + post.slug return ( -
+
- - {post.title} - + {post.title}
+ ) } diff --git a/themes/gitbook/components/NavPostList.js b/themes/gitbook/components/NavPostList.js index 58b894d8..6ad7fd94 100644 --- a/themes/gitbook/components/NavPostList.js +++ b/themes/gitbook/components/NavPostList.js @@ -56,7 +56,7 @@ const NavPostList = (props) => { if (!groupedArray || groupedArray.length === 0) { return } else { - return
+ return
{/* 文章列表 */} {groupedArray?.map((group, index) => )}