优化结构
This commit is contained in:
@@ -5,7 +5,7 @@ import PageHeaderCard from '@/components/PageHeaderCard.astro';
|
||||
import { getAllPosts } from '@/lib/posts';
|
||||
import { getPageSlice } from '@/lib/pagination';
|
||||
|
||||
const posts = getAllPosts();
|
||||
const posts = await getAllPosts();
|
||||
const pageData = getPageSlice(posts, 1);
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user