2023-08-16 23:55:57 +08:00
|
|
|
import { sortPosts, allCoreContent } from 'pliny/utils/contentlayer';
|
|
|
|
import { allBlogs } from 'contentlayer/generated';
|
|
|
|
import Main from './Main';
|
2023-08-16 23:29:22 +08:00
|
|
|
|
|
|
|
export default async function Page() {
|
2023-08-16 23:55:57 +08:00
|
|
|
const sortedPosts = sortPosts(allBlogs);
|
|
|
|
const posts = allCoreContent(sortedPosts);
|
|
|
|
return <Main posts={posts} />;
|
2023-08-16 23:29:22 +08:00
|
|
|
}
|