fix:post-scroll-page

This commit is contained in:
tangly1024
2022-04-19 16:15:34 +08:00
parent cd16275b0a
commit 92071cccb7
5 changed files with 11 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ import Card from './components/Card'
import BlogPostListScroll from './components/BlogPostListScroll'
import BlogPostListPage from './components/BlogPostListPage'
import CONFIG_NEXT from './config_next'
import BLOG from '@/blog.config'
export const LayoutIndex = (props) => {
const { latestPosts } = props
@@ -15,7 +16,7 @@ export const LayoutIndex = (props) => {
rightAreaSlot={rightAreaSlot}
{...props}
>
{CONFIG_NEXT.POST_LIST_TYPE !== 'page'
{BLOG.POST_LIST_TYPE !== 'page'
? <BlogPostListScroll {...props} showSummary={true} />
: <BlogPostListPage {...props} />
}