nobelium 主页日期

This commit is contained in:
tangly1024
2023-09-02 13:06:05 +08:00
parent 7f14378f50
commit d68a4376a6

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>