mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 23:16:51 +00:00
fix post?.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
|
||||
import formatDate from '@/lib/formatDate'
|
||||
import Image from 'next/image'
|
||||
import BLOG from '@/blog.config'
|
||||
import TagItem from './TagItem'
|
||||
@@ -33,12 +32,9 @@ export const ArticleInfo = (props) => {
|
||||
<span className="block"> / </span>
|
||||
</div>
|
||||
<div className="mr-2 mb-4 md:ml-0">
|
||||
{formatDate(
|
||||
post?.publishTime || post?.createdTime,
|
||||
BLOG.LANG
|
||||
)}
|
||||
{post?.publishTime}
|
||||
</div>
|
||||
{post.tags && (
|
||||
{post?.tags && (
|
||||
<div className="flex flex-nowrap max-w-full overflow-x-auto article-tags">
|
||||
{post?.tags.map(tag => (
|
||||
<TagItem key={tag} tag={tag} />
|
||||
|
||||
Reference in New Issue
Block a user