mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-16 15:09:28 +00:00
修复page=1的path异常
This commit is contained in:
@@ -26,9 +26,8 @@ export async function getStaticPaths () {
|
||||
const totalPosts = posts.length
|
||||
const totalPages = Math.ceil(totalPosts / BLOG.postsPerPage)
|
||||
return {
|
||||
// remove first page, we 're not gonna handle that.
|
||||
paths: Array.from({ length: totalPages - 1 }, (_, i) => ({
|
||||
params: { page: '' + (i + 2) }
|
||||
params: { page: '' + (i + 1) }
|
||||
})),
|
||||
fallback: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user