mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Fix post pagination has no next page
This commit is contained in:
@ -30,7 +30,7 @@ const BlogPage = ({
|
||||
<Pagination
|
||||
className="py-6 mt-4 px-7 lg:px-5"
|
||||
hasPrev={!!prev}
|
||||
hasNext={next === total}
|
||||
hasNext={next <= total}
|
||||
prevLink={prev === 1 ? '/blog' : `/blog/${prev}`}
|
||||
nextLink={`/blog/${next}`}
|
||||
current={next - 1}
|
||||
|
@ -29,7 +29,7 @@ const Blog = ({
|
||||
<Pagination
|
||||
className="py-6 mt-4 px-7 lg:px-5"
|
||||
hasPrev={false}
|
||||
hasNext={next === total}
|
||||
hasNext={next <= total}
|
||||
prevLink={''}
|
||||
nextLink={`/blog/${next}`}
|
||||
current={1}
|
||||
|
Reference in New Issue
Block a user