文章详情页

This commit is contained in:
tangly1024
2022-01-16 17:19:41 +08:00
parent 8216bee7db
commit 1feba5bc9f
11 changed files with 252 additions and 106 deletions

View File

@@ -36,6 +36,7 @@ export async function getStaticProps ({ params: { page } }) {
description: BLOG.description,
type: 'website'
}
// 处理分页
const postsToShow = allPosts.slice(
BLOG.postsPerPage * (page - 1),