import BLOG from '@/blog.config' import NotionPage from '@/components/NotionPage' import Link from 'next/link' import TagItemMini from './TagItemMini' export const BlogPostCardInfo = ({ post, showPreview, showSummary }) => { return <> {/* 标题 */} {post.title} {/* 日期 */}
{post.date?.start_date || post.lastEditedTime}
{/* 摘要 */} {(!showPreview || showSummary) && !post.results && (

{post.summary}

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

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

)} {/* 预览 */} {showPreview && (
)} {/* 分类标签 */}
{post.category}
{' '} {post.tagItems.map(tag => ( ))}
}