From 11ff50076311b2077a725f29d34bcb1a7bc8123d Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 13 Apr 2022 15:05:47 +0800 Subject: [PATCH] =?UTF-8?q?hexo=E6=9F=A5=E8=AF=A2=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/components/BlogPostCard.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js index 54a37a72..ab341356 100644 --- a/themes/hexo/components/BlogPostCard.js +++ b/themes/hexo/components/BlogPostCard.js @@ -38,13 +38,22 @@ const BlogPostCard = ({ post, showSummary }) => { - {(!showPreview || showSummary) && ( + {(!showPreview || showSummary) && !post.results && (

{post.summary}

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

+ {post.results.map(r => ( + {r} + ))} +

+ )} + {showPreview && (