mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
分类页显示title
This commit is contained in:
@@ -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
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user