mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-09 15:10:39 +00:00
fix date
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user