import LazyImage from '@/components/LazyImage' import NotionIcon from '@/components/NotionIcon' import NotionPage from '@/components/NotionPage' import { siteConfig } from '@/lib/config' import { useGlobal } from '@/lib/global' import Link from 'next/link' import CategoryItem from './CategoryItem' /** * 水平左右布局的博客卡片 * @param {*} param0 * @returns */ const PostItemCardWide = ({ post, showSummary }) => { const showPreview = siteConfig('MAGZINE_POST_LIST_PREVIEW') && post?.blockMap const { locale } = useGlobal() return (
{/* 卡牌左侧 */}
{siteConfig('MAGZINE_POST_LIST_CATEGORY') && ( )}

{siteConfig('POST_TITLE_ICON') && ( )} {post?.title}

{(!showPreview || showSummary) && (
{post?.summary}
)} {showPreview && (
{locale.COMMON.ARTICLE_DETAIL}
)}
{/* {siteConfig('MAGZINE_POST_LIST_TAG') && post?.tagItems?.map(tag => ( ))} */}
{post?.date?.start_date}
{/* 卡牌右侧图片 */}
) } export default PostItemCardWide