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

【配置】每页展示篇数字段无效 #2971

Open
leewint opened this issue Nov 14, 2024 · 2 comments
Open

【配置】每页展示篇数字段无效 #2971

leewint opened this issue Nov 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@leewint
Copy link

leewint commented Nov 14, 2024

描述bug
POSTS_PER_PAGE: process.env.NEXT_PUBLIC_POST_PER_PAGE || 6, // post counts per page
这个字段设置无效,无论怎么改,每页都是12篇文章,但是对分页页数有效,假如有30篇文章,设置每页展示5篇,页面下面就会展示6页,但是每一页还是展示12篇。翻到后面几页就会显示空白了。

期望的正常结果
改字段设置有效。

  • 【必填】NotionNext版本: 4.7.8
  • 【必填】主题: hexo
  • 【必填】部署方案 :vercel
  • 【可选】操作系统: indows
  • 【可选】浏览器:edge
@leewint leewint added the bug Something isn't working label Nov 14, 2024
@tangly1024 tangly1024 changed the title 每页展示篇数字段无效 【配置】每页展示篇数字段无效 Nov 14, 2024
@tangly1024
Copy link
Owner

请问是通过何种方式修改:

  1. blog.config.js 文件修改
  2. NEXT_PUBLIC_POST_PER_PAGE 环境变量修改
  3. NOTION数据库中修改CONFIG

@leewint
Copy link
Author

leewint commented Nov 14, 2024

请问是通过何种方式修改:

  1. blog.config.js 文件修改
  2. NEXT_PUBLIC_POST_PER_PAGE 环境变量修改
  3. NOTION数据库中修改CONFIG

第一种和第二种都不行,第三种我没试过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants