mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
22 lines
758 B
JavaScript
22 lines
758 B
JavaScript
import LayoutBase from './LayoutBase'
|
|
import StickyBar from './components/StickyBar'
|
|
import CategoryList from './components/CategoryList'
|
|
import BlogPostListScroll from './components/BlogPostListScroll'
|
|
import BlogPostListPage from './components/BlogPostListPage'
|
|
import BLOG from '@/blog.config'
|
|
|
|
export const LayoutCategory = (props) => {
|
|
const { category, categories } = props
|
|
return <LayoutBase currentCategory={category} {...props}>
|
|
<StickyBar>
|
|
<CategoryList currentCategory={category} categories={categories} />
|
|
</StickyBar>
|
|
<div className='md:mt-8'>
|
|
{BLOG.POST_LIST_STYLE !== 'page'
|
|
? <BlogPostListScroll {...props} showSummary={true} />
|
|
: <BlogPostListPage {...props} />
|
|
}
|
|
</div>
|
|
</LayoutBase>
|
|
}
|