标签加入颜色,修复编译问题
This commit is contained in:
tangly1024
2021-12-01 09:59:50 +08:00
parent 1e24789a24
commit 85f5c266b1
7 changed files with 54 additions and 35 deletions

View File

@@ -128,14 +128,14 @@ const ArticleDetail = ({ post, blockMap, tags, prev, next, posts, categories })
<section className='md:flex md:justify-between'>
{post.tags && (
{post.tagItems && (
<div className='flex flex-nowrap leading-8 p-1 py-4 overflow-x-auto'>
<div className='hidden md:block dark:text-gray-300'>标签</div>
{post.tagItems.map(tag => (
<TagItem key={tag.name} tag={tag} />
))}
</div>
)}
)}
<div>
<ShareBar post={post} />