Skip to content

Commit

Permalink
nobelium 主页日期
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Sep 2, 2023
1 parent 7f14378 commit d68a437
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions themes/nobelium/components/BlogPost.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Link from 'next/link'
import BLOG from '@/blog.config'
import formatDate from '@/lib/formatDate'

const BlogPost = ({ post }) => {
return (
Expand All @@ -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>
Expand Down

0 comments on commit d68a437

Please sign in to comment.