Skip to content

Commit

Permalink
Merge pull request tangly1024#1493 from tangly1024/fix/nobelium-date-…
Browse files Browse the repository at this point in the history
…format

nobelium 主页日期
  • Loading branch information
tangly1024 committed Sep 2, 2023
2 parents 7f14378 + d68a437 commit b146f9d
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 b146f9d

Please sign in to comment.