mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-30 23:16:52 +00:00
fix:post-scroll-page
This commit is contained in:
@@ -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} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user