import Link from 'next/link' import NotionIcon from './NotionIcon' import { useRouter } from 'next/router' const BlogPostCard = ({ post, className }) => { const router = useRouter() const currentSelected = router.asPath.split('?')[0] === '/' + post.slug const pageIcon = post.pageIcon.indexOf('amazonaws.com') !== -1 ? post.pageIcon + '&width=88' : post.pageIcon return (
{post.title}
{post.summary ? post.summary : '暂无简介'}