This commit is contained in:
tangly1024.com
2023-07-10 11:00:29 +08:00
parent 4047162e48
commit df868f3d21
6 changed files with 7 additions and 27 deletions

View File

@@ -1,7 +1,6 @@
import Link from 'next/link'
import TagItemMini from './TagItemMini'
import { useGlobal } from '@/lib/global'
import formatDate from '@/lib/formatDate'
import BLOG from '@/blog.config'
import NotionIcon from '@/components/NotionIcon'
@@ -13,11 +12,6 @@ export default function HeaderArticle({ post, siteInfo }) {
}
const headerImage = post?.pageCover ? `url("${post.pageCover}")` : `url("${siteInfo?.pageCover}")`
const date = formatDate(
post?.publishTime,
locale.LOCALE
)
return (
<div
id="header"
@@ -53,7 +47,7 @@ export default function HeaderArticle({ post, siteInfo }) {
passHref
className="pl-1 mr-2 cursor-pointer hover:underline">
{locale.COMMON.POST_TIME}:{date}
{locale.COMMON.POST_TIME}:{post?.publishTime}
</Link>
</>