diff --git a/themes/game/components/BlogListPage.js b/themes/game/components/BlogListPage.js index cf53e13c..8d821bd1 100644 --- a/themes/game/components/BlogListPage.js +++ b/themes/game/components/BlogListPage.js @@ -1,13 +1,25 @@ +import { siteConfig } from '@/lib/config' import { GameListIndexCombine } from './GameListIndexCombine' - +import PaginationSimple from './PaginationSimple' +/** + * 分页博客列表 + * @param {*} props + * @returns + */ export const BlogListPage = props => { + const { page = 1, postCount } = props + const totalPage = Math.ceil( + postCount / parseInt(siteConfig('POSTS_PER_PAGE')) + ) + const showNext = page < totalPage + return ( <>