Skip to content

Commit

Permalink
[fix] pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
suu3 committed Feb 29, 2024
1 parent f42ad8e commit f8ab3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/@layout/post-list-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const PostListTemplate = ({ data, location, pageContext }) => {
<Pagination
onPageChange={handlePageChange}
currentPage={currentPage}
totalPages={Number((totalCount / POST_PER_PAGE + 1).toFixed(0))}
totalPages={Math.ceil(totalCount / POST_PER_PAGE)}
/>
{/* <Pagination
itemRender={textItemRender}
Expand Down

0 comments on commit f8ab3fd

Please sign in to comment.