Files
NotionNext/themes/gitbook/LayoutCategory.js
tangly1024.com bcddec5748 gitbook-collapse
2023-06-29 15:55:23 +08:00

16 lines
610 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import LayoutBase from './LayoutBase'
import NavPostList from './components/NavPostList'
import BlogPostListPage from './components/BlogPostListPage'
import BLOG from '@/blog.config'
export const LayoutCategory = props => {
const { category } = props
const slotTop = <div className='flex items-center py-8'><div className='text-xl'><i className='mr-2 fas fa-th' />分类</div>{category}</div>
return <LayoutBase {...props} slotTop={slotTop}>
{BLOG.POST_LIST_STYLE === 'page' ? <BlogPostListPage {...props} /> : <NavPostList {...props} />}
</LayoutBase>
}
export default LayoutCategory