diff --git a/components/PaginationNumber.js b/components/PaginationNumber.js index 958fa06c..81fabc48 100644 --- a/components/PaginationNumber.js +++ b/components/PaginationNumber.js @@ -66,7 +66,7 @@ function generatePages (page, currentPage, totalPage) { pages.push(getPageElement(1, page)) const dynamicGroupCount = groupCount - 2 let startPage = currentPage - 2 - if (startPage < 0) { + if (startPage <= 0) { startPage = 2 } if (startPage + dynamicGroupCount > totalPage) { diff --git a/pages/page/[page].js b/pages/page/[page].js index 4021598d..39b84d0f 100644 --- a/pages/page/[page].js +++ b/pages/page/[page].js @@ -44,7 +44,7 @@ export async function getStaticProps ({ params: { page } }) { const tagOptions = notionPageData.tagOptions const tags = await getAllTags({ allPosts, tagOptions }) const meta = { - title: `${page} | Page |${BLOG.title}`, + title: `${page} | Page | ${BLOG.title}`, description: BLOG.description, type: 'website' }