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 && (