import BLOG from '@/blog.config' import Link from 'next/link' import TagItemMini from './TagItemMini' import React from 'react' import CONFIG_FUKA from '../config_fuka' const BlogCard = ({ index, post, showSummary, siteInfo }) => { const showPreview = CONFIG_FUKA.POST_LIST_PREVIEW && post.blockMap // matery 主题默认强制显示图片 if (post && !post.page_cover) { post.page_cover = siteInfo?.pageCover } const showPageCover = CONFIG_FUKA.POST_LIST_COVER && post?.page_cover return (
{post.title} {(!showPreview || showSummary) && (

{post.summary}

)} {/* 分类标签 */}
{post.category}
{' '} {post.tagItems.map(tag => ( ))}
{showPageCover && (
{/* eslint-disable-next-line @next/next/no-img-element */} {post.title} {/* {post.title} */}
)}
) } export default BlogCard