Merge pull request #1493 from tangly1024/fix/nobelium-date-format

nobelium 主页日期
This commit is contained in:
tangly1024
2023-09-02 13:07:00 +08:00
committed by GitHub

View File

@@ -1,6 +1,5 @@
import Link from 'next/link'
import BLOG from '@/blog.config'
import formatDate from '@/lib/formatDate'
const BlogPost = ({ post }) => {
return (
@@ -12,7 +11,7 @@ const BlogPost = ({ post }) => {
{post.title}
</h2>
<time className="flex-shrink-0 text-gray-600 dark:text-gray-400">
{formatDate(post?.publishDay || post.createdTime, BLOG.LANG)}
{post?.publishDay}
</time>
</header>
<main>