fix post?.

This commit is contained in:
tangly1024.com
2023-07-11 18:28:16 +08:00
parent 47b3fa28e9
commit bb6b2b3e1d
10 changed files with 14 additions and 18 deletions

View File

@@ -32,7 +32,7 @@ export const BlogItem = props => {
<div>
{post.category && <Link href={`/category/${post.category}`} className='p-1'> <span className="hover:text-red-400 transition-all duration-200"><i className="fa-regular fa-folder mr-0.5"/>{post.category}</span></Link>}
{post.tags && post.tags?.length > 0 && post.tags.map(t => <Link key={t} href={`/tag/${t}`} className=' hover:text-red-400 transition-all duration-200'><span > /{t}</span></Link>)}
{post?.tags && post?.tags?.length > 0 && post?.tags.map(t => <Link key={t} href={`/tag/${t}`} className=' hover:text-red-400 transition-all duration-200'><span > /{t}</span></Link>)}
</div>
</div>