tailwind-nextjs-blog/app/page.tsx

10 lines
311 B
TypeScript
Raw Normal View History

2023-08-16 23:55:57 +08:00
import { sortPosts, allCoreContent } from 'pliny/utils/contentlayer';
import { allBlogs } from 'contentlayer/generated';
import Main from './Main';
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} />;
}