From 880505b9d13860f3f0530ca6c7f196f9fc1bb3f4 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 18 Oct 2021 14:02:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpage=3D1=E7=9A=84path?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/page/[page].js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/page/[page].js b/pages/page/[page].js index f4c4de03..318a23fb 100644 --- a/pages/page/[page].js +++ b/pages/page/[page].js @@ -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 }