Skip to content

Commit 2e7085c

Browse files
avivkellerefekrskl
andauthored
Update apps/site/util/blog.ts
Co-authored-by: Efe <dogukankrskl@gmail.com> Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent 0b0b049 commit 2e7085c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/util/blog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const getBlogPosts = (category: BlogCategory): BlogPostsRSC => {
3030
next: null,
3131
// In case the division results on a remainder we need
3232
// to have an extra page containing the remainder entries
33-
pages: Math.floor(total % 1 === 0 ? total : total + 1),
33+
pages: Math.ceil(total),
3434
total: categoryPosts.length,
3535
},
3636
};

0 commit comments

Comments
 (0)