import { allPosts } from 'contentlayer/generated'; export default async function BlogArchivePage() { const posts = allPosts.sort((a, b) => { return new Date(a.date).getTime() - new Date(b.date).getTime(); }).reverse(); return ( <> {posts.map((post, i) => (
{post._id} {post.title}
))} ); }