From 3b96f210fa5c0201338a2b523f3ab55ee2676c21 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Thu, 3 Aug 2023 19:15:26 +0800 Subject: [PATCH] =?UTF-8?q?heo=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/heo/components/BlogPostCard.js | 11 +---------- themes/heo/index.js | 4 +++- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/themes/heo/components/BlogPostCard.js b/themes/heo/components/BlogPostCard.js index d44c5fe4..7c6079f9 100644 --- a/themes/heo/components/BlogPostCard.js +++ b/themes/heo/components/BlogPostCard.js @@ -50,21 +50,12 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => { {/* 摘要 */} - {(!showPreview || showSummary) && !post.results && ( + {(!showPreview || showSummary) && (

{post.summary}

)} - {/* 搜索结果 */} - {post.results && ( -

- {post.results.map((r, index) => ( - {r} - ))} -

- )} -
{' '} diff --git a/themes/heo/index.js b/themes/heo/index.js index 2e573195..a7bb823e 100644 --- a/themes/heo/index.js +++ b/themes/heo/index.js @@ -158,7 +158,9 @@ const LayoutSearch = props => {
{!currentSearch ? - :
{BLOG.POST_LIST_STYLE === 'page' ? : }
} + :
+ {BLOG.POST_LIST_STYLE === 'page' ? : } +
}
)