mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 07:26:50 +00:00
修复部分NOTION_CONFIG读取问题
This commit is contained in:
@@ -11,10 +11,10 @@ import BlogItem from './BlogItem'
|
||||
*/
|
||||
export const BlogListPage = props => {
|
||||
const { page = 1, posts, postCount } = props
|
||||
const { locale } = useGlobal()
|
||||
const { locale, NOTION_CONFIG } = useGlobal()
|
||||
const router = useRouter()
|
||||
const totalPage = Math.ceil(
|
||||
postCount / parseInt(siteConfig('POSTS_PER_PAGE'))
|
||||
postCount / siteConfig('POSTS_PER_PAGE', 12, NOTION_CONFIG)
|
||||
)
|
||||
const currentPage = +page
|
||||
|
||||
|
||||
Reference in New Issue
Block a user