diff --git a/themes/game/components/BlogListPage.js b/themes/game/components/BlogListPage.js index 139eb783..dc1df2a6 100644 --- a/themes/game/components/BlogListPage.js +++ b/themes/game/components/BlogListPage.js @@ -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 (