Merge branch 'theme-Next' into main

Merge Bugfix:PaginationNumber.js
This commit is contained in:
tangly1024
2022-01-06 13:29:06 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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'
}