import BLOG from '@/blog.config' import Image from 'next/image' import Link from 'next/link' import React from 'react' import { Code, Collection, CollectionRow, Equation, NotionRenderer } from 'react-notion-x' import TagItemMini from './TagItemMini' import CONFIG_HEXO from '../config_hexo' const BlogPostCard = ({ post, showSummary }) => { const showPreview = CONFIG_HEXO.POST_LIST_PREVIEW && post.blockMap return (
{post.title}
{post.date.start_date}
{(!showPreview || showSummary) &&

{post.summary}

} {showPreview &&
}
{post.category}
{post.tagItems.map(tag => ())}
{CONFIG_HEXO.POST_LIST_COVER && !showPreview && post?.page_cover && ( {/* eslint-disable-next-line @next/next/no-img-element */} {/* {post.title} */} {post.title} )}
) } const mapPageUrl = id => { return 'https://www.notion.so/' + id.replace(/-/g, '') } export default BlogPostCard