mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
fix post list
This commit is contained in:
@ -64,7 +64,7 @@ export const getStaticProps: GetStaticProps<{
|
||||
|
||||
return {
|
||||
props: {
|
||||
posts: posts.slice(page, PostPerPage),
|
||||
posts: posts.slice((page - 1) * PostPerPage, PostPerPage + 1),
|
||||
prev: page - 1,
|
||||
next: page + 1,
|
||||
total: Math.ceil(posts.length / PostPerPage),
|
||||
|
Reference in New Issue
Block a user