import { siteConfig } from '@/lib/config' import Link from 'next/link' import TagItemMini from './TagItemMini' import CONFIG from '../config' import LazyImage from '@/components/LazyImage' const BlogCard = ({ index, post, showSummary, siteInfo }) => { const showPreview = siteConfig('FUKASAWA_POST_LIST_PREVIEW', null, CONFIG) && post.blockMap // fukasawa 强制显示图片 if (siteConfig('FUKASAWA_POST_LIST_COVER_FORCE', null, CONFIG) && post && !post.pageCover) { post.pageCoverThumbnail = siteInfo?.pageCover } const showPageCover = siteConfig('FUKASAWA_POST_LIST_COVER', null, CONFIG) && post?.pageCoverThumbnail const SUB_PATH = siteConfig('SUB_PATH', '') return (
{/* 封面图 */} {showPageCover && (
)} {/* 文字部分 */}
{post.title} {(!showPreview || showSummary) && (

{post.summary}

)} {/* 分类标签 */}
{post.category && {post.category} }
{post.tagItems?.map((tag) => ( ))}
) } export default BlogCard