mirror of
https://github.com/valentineus/popov.link.git
synced 2025-07-04 08:30:27 +03:00
Refactor Pagination component to update page size in getStaticPaths
This commit is contained in:
@ -12,7 +12,7 @@ export const getStaticPaths = (async ({ paginate }) => {
|
||||
posts.sort((a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime());
|
||||
|
||||
return paginate(posts, {
|
||||
pageSize: 5,
|
||||
pageSize: 10,
|
||||
});
|
||||
}) satisfies GetStaticPaths;
|
||||
|
||||
|
Reference in New Issue
Block a user