refactor: update site metadata structure
This commit is contained in:
parent
71d1df3bd7
commit
931bf7277c
15 changed files with 123 additions and 114 deletions
|
@ -16,7 +16,7 @@ export async function getStaticPaths({
|
|||
const allPosts = await getCollection('blog', ({ data }) => !data.draft)
|
||||
return paginate(
|
||||
allPosts.sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf()),
|
||||
{ pageSize: SITE.POSTS_PER_PAGE },
|
||||
{ pageSize: SITE.postsPerPage },
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue