mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 23:16:49 +00:00
25 lines
790 B
JavaScript
25 lines
790 B
JavaScript
import LayoutBase from './LayoutBase'
|
|
import StickyBar from './components/StickyBar'
|
|
import TagList from './components/TagList'
|
|
import BlogPostListScroll from './components/BlogPostListScroll'
|
|
import BlogPostListPage from './components/BlogPostListPage'
|
|
import BLOG from '@/blog.config'
|
|
|
|
export const LayoutTag = (props) => {
|
|
const { tagOptions, tag } = props
|
|
|
|
return <LayoutBase currentTag={tag} {...props}>
|
|
<StickyBar>
|
|
<TagList tagOptions={tagOptions} currentTag={tag} />
|
|
</StickyBar>
|
|
<div className='md:mt-8'>
|
|
{BLOG.POST_LIST_STYLE !== 'page'
|
|
? <BlogPostListScroll {...props} showSummary={true} />
|
|
: <BlogPostListPage {...props} />
|
|
}
|
|
</div>
|
|
</LayoutBase>
|
|
}
|
|
|
|
export default LayoutTag
|