Merge pull request #2641 from IVSpretender/main

修复:game主题下,向后翻页"Next"按钮不显示
This commit is contained in:
tangly1024
2024-08-28 12:13:55 +08:00
committed by GitHub

View File

@@ -1,3 +1,4 @@
import { siteConfig } from '@/lib/config'
import { useGlobal } from '@/lib/global'
import { GameListIndexCombine } from './GameListIndexCombine'
import PaginationSimple from './PaginationSimple'
@@ -9,7 +10,8 @@ import PaginationSimple from './PaginationSimple'
export const BlogListPage = props => {
const { page = 1, postCount } = props
const { NOTION_CONFIG } = useGlobal()
const totalPage = Math.ceil(postCount / NOTION_CONFIG)
const POSTS_PER_PAGE = siteConfig('POSTS_PER_PAGE', null, NOTION_CONFIG)
const totalPage = Math.ceil(postCount / POSTS_PER_PAGE)
const showNext = page < totalPage
return (