import NotionPage from '@/components/NotionPage' import Link from 'next/link' import TagItemMini from './TagItemMini' import TwikooCommentCount from '@/components/TwikooCommentCount' import { siteConfig } from '@/lib/config' import { formatDateFmt } from '@/lib/formatDate' import { checkContainHttp, sliceUrlFromHttp } from '@/lib/utils' import NotionIcon from '@/components/NotionIcon' /** * 博客列表的文字内容 * @param {*} param0 * @returns */ export const BlogPostCardInfo = ({ post, showPreview, showPageCover, showSummary }) => { const url = checkContainHttp(post.slug) ? sliceUrlFromHttp(post.slug) : `${siteConfig('SUB_PATH', '')}/${post.slug}` return

{/* 标题 */} {post.title}

{/* 分类 */} { post?.category &&
{post.category}
}
{/* 摘要 */} {(!showPreview || showSummary) && !post.results && (
{post.summary}
)} {/* 搜索结果 */} {post.results && (

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

)} {/* 预览 */} {showPreview && (
)}
{/* 日期标签 */}
{/* 日期 */} {post?.publishDay || post.lastEditedDay}
{' '} {post.tagItems?.map(tag => ( ))}
}