gitbook-collapse

This commit is contained in:
tangly1024.com
2023-06-29 15:55:23 +08:00
parent bb8d0a5fa7
commit bcddec5748
13 changed files with 107 additions and 65 deletions

View File

@@ -1,6 +1,6 @@
import LayoutBase from './LayoutBase'
import BLOG from '@/blog.config'
import BlogPostListScroll from './components/BlogPostListScroll'
import NavPostList from './components/NavPostList'
import BlogPostListPage from './components/BlogPostListPage'
export const LayoutTag = (props) => {
@@ -8,7 +8,7 @@ export const LayoutTag = (props) => {
const slotTop = <div className='flex items-center py-8'><div className='text-xl'><i className='mr-2 fas fa-tag'/>标签</div>{tag}</div>
return <LayoutBase {...props} slotTop={slotTop}>
{BLOG.POST_LIST_STYLE === 'page' ? <BlogPostListPage {...props} /> : <BlogPostListScroll {...props} />}
{BLOG.POST_LIST_STYLE === 'page' ? <BlogPostListPage {...props} /> : <NavPostList {...props} />}
</LayoutBase>
}