分类页显示title

This commit is contained in:
tangly
2022-10-19 13:02:39 +08:00
parent a39c27cb62
commit d6e1c35802
2 changed files with 7 additions and 4 deletions

View File

@@ -1,3 +1,2 @@
# 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables
NEXT_PUBLIC_VERSION=3.5.0
NOTION_PAGE_ID=bee1fccfa3bd47a1a7be83cc71372d83
NEXT_PUBLIC_VERSION=3.5.0

View File

@@ -4,6 +4,10 @@ import LayoutBase from './LayoutBase'
export const LayoutCategory = props => {
const { tags, posts, category } = props
return <LayoutBase {...props}>
<BlogPostListScroll posts={posts} tags={tags} currentCategory={category}/>
</LayoutBase>
<div className="cursor-pointer px-5 py-1 mb-2 font-light hover:underline hover:text-indigo-700 dark:hover:text-indigo-400 transform text-center dark:text-white">
<i className="mr-1 far fa-folder" />
{category}
</div>
<BlogPostListScroll posts={posts} tags={tags} currentCategory={category} />
</LayoutBase>
}