import { siteConfig } from '@/lib/config' import CONFIG from '../config' import Link from 'next/link' import TwikooCommentCount from '@/components/TwikooCommentCount' import LazyImage from '@/components/LazyImage' import { checkContainHttp, sliceUrlFromHttp } from '@/lib/utils' import NotionIcon from '@/components/NotionIcon' const BlogPostCard = ({ post }) => { const showPageCover = siteConfig('EXAMPLE_POST_LIST_COVER', null, CONFIG) && post?.pageCoverThumbnail const url = checkContainHttp(post.slug) ? sliceUrlFromHttp(post.slug) : `${siteConfig('SUB_PATH', '')}/${post.slug}` return

{post?.title}

by {siteConfig('AUTHOR')} on {post.date?.start_date || post.createdTime} {post.category && <> | {post.category} } {/* | */} {/* 2 Comments */}
{!post.results &&

{post.summary}

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

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

)}
{/* 图片封面 */} {showPageCover && (
)}
} export default BlogPostCard