mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-09 07:26:47 +00:00
Merge pull request #1493 from tangly1024/fix/nobelium-date-format
nobelium 主页日期
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import BLOG from '@/blog.config'
|
import BLOG from '@/blog.config'
|
||||||
import formatDate from '@/lib/formatDate'
|
|
||||||
|
|
||||||
const BlogPost = ({ post }) => {
|
const BlogPost = ({ post }) => {
|
||||||
return (
|
return (
|
||||||
@@ -12,7 +11,7 @@ const BlogPost = ({ post }) => {
|
|||||||
{post.title}
|
{post.title}
|
||||||
</h2>
|
</h2>
|
||||||
<time className="flex-shrink-0 text-gray-600 dark:text-gray-400">
|
<time className="flex-shrink-0 text-gray-600 dark:text-gray-400">
|
||||||
{formatDate(post?.publishDay || post.createdTime, BLOG.LANG)}
|
{post?.publishDay}
|
||||||
</time>
|
</time>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
|
|||||||
Reference in New Issue
Block a user