Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复:game主题下,向后翻页"Next"按钮不显示 #2641

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

IVSpretender
Copy link

修复详情

修复game主题的Page文章列表样式下,向后翻页"Next->"按钮不显示的问题。

问题定位

发生问题的文件为themes\game\components\BlogListPage.js

const totalPage = Math.ceil(postCount / NOTION_CONFIG)
const showNext = page < totalPage

NOTION_CONFIG不是数字,导致totalPage = NaN,showNext始终为false,向后翻页按钮"Next->"总是不显示.

修复思路

其它主题下可以正确显示翻页按钮,因此可以参考其它主题下的文件,例如themes\simple\components\BlogListPage.js,以修复game主题下向后翻页按钮"Next->"不显示的问题。

Copy link

vercel bot commented Aug 5, 2024

@E8nvy is attempting to deploy a commit to the tangly1024's projects Team on Vercel.

A member of the Team first needs to authorize it.

@tangly1024 tangly1024 merged commit b7554b8 into tangly1024:main Aug 28, 2024
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants