import Link from 'next/link' import { useGlobal } from '@/lib/global' import CONFIG from '../config' import { siteConfig } from '@/lib/config' import { formatDateFmt } from '@/lib/utils/formatDate' import NotionIcon from '@/components/NotionIcon' /** * 文章描述 * @param {*} props * @returns */ export default function ArticleInfo(props) { const { post } = props const { locale } = useGlobal() return (

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

{post?.type !== 'Page' && (
发布于 {post.date?.start_date || post.createdTime}
{/* {post.category && ( {' '} {post.category} )} */} {post?.tags && post?.tags?.length > 0 && post?.tags.map(t => ( #{t} ))}
)}
) }