From 3845a113cf610b40daa1d2cff318000802d0bfac Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 8 Nov 2021 13:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BlogPostCard.js | 6 +++--- components/BlogPostListScroll.js | 2 +- pages/search.js | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index b62f4671..a1d880f6 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -5,11 +5,11 @@ import React from 'react' const BlogPostCard = ({ post }) => { return ( -
+
{/* 封面图 */} {post.page_cover && post.page_cover.length > 1 && ( - - {post.title} + + {post.title} )} diff --git a/components/BlogPostListScroll.js b/components/BlogPostListScroll.js index b286f8c3..37da3960 100644 --- a/components/BlogPostListScroll.js +++ b/components/BlogPostListScroll.js @@ -51,7 +51,7 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory, if (!postsToShow || postsToShow.length === 0) { return } else { - return
+ return
{currentCategory && (
diff --git a/pages/search.js b/pages/search.js index b7095202..5c7aa49c 100644 --- a/pages/search.js +++ b/pages/search.js @@ -44,6 +44,8 @@ const Search = ({ posts, tags, meta, categories }) => {
+ {/* 标签栏留白 */} +