内存全文索引

This commit is contained in:
tangly1024
2022-03-01 16:23:09 +08:00
parent 26ac377749
commit f053f42c21
8 changed files with 108 additions and 6 deletions

View File

@@ -43,6 +43,12 @@ const BlogPostCard = ({ post, showSummary }) => {
{(!showPreview || showSummary) && <p className='mt-4 mb-24 text-gray-700 dark:text-gray-300 text-sm font-light leading-7'>
{post.summary}
{/* 搜索结果 */}
{post.results && <span className='mt-4 text-gray-700 dark:text-gray-300 text-sm font-light leading-7'>
{post.results.map(r => <span key={r}>...<span dangerouslySetInnerHTML={{ __html: r }}/>...</span>)}
</span>
}
</p>}
{showPreview && post?.blockMap && <div className='overflow-ellipsis truncate'>