import BLOG from '@/blog.config' import Link from 'next/link' import React from 'react' import TagItemMini from './TagItemMini' import CONFIG_HEXO from '../config_hexo' import NotionPage from '@/components/NotionPage' const BlogPostCard = ({ post, showSummary }) => { const showPreview = CONFIG_HEXO.POST_LIST_PREVIEW && post.blockMap const linkedCoverPrefix = 'https://www.notion.so/image/' if (post?.page_cover && post?.page_cover?.startsWith(linkedCoverPrefix)) { const linkedCoverPrefixLength = linkedCoverPrefix.length post.page_cover = decodeURIComponent(post.page_cover.slice(linkedCoverPrefixLength)) } return (
{post.summary}
)} {/* 搜索结果 */} {post.results && ({post.results.map(r => ( {r} ))}
)} {showPreview && (