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' ? : } +
}
)