import LazyImage from '@/components/LazyImage' import NotionIcon from '@/components/NotionIcon' import TwikooCommentCount from '@/components/TwikooCommentCount' import { siteConfig } from '@/lib/config' import Link from 'next/link' import CONFIG from '../config' /** * 博客列表的单个卡片 * @param {*} param0 * @returns */ const BlogItem = ({ post }) => { const showPageCover = siteConfig('EXAMPLE_POST_LIST_COVER', null, CONFIG) && post?.pageCoverThumbnail return (

{siteConfig('POST_TITLE_ICON') && ( )} {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 BlogItem