mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-29 23:16:51 +00:00
theme-game 微调
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
<div id='posts-wrapper' className='my-4 select-none'>
|
||||
<GameListIndexCombine {...props} />
|
||||
</div>
|
||||
|
||||
{/* 这里不显示分页组件,首页只展示部分即可 */}
|
||||
<PaginationSimple page={page} showNext={showNext} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user