File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1- export default function Home ( ) {
2- return (
3- < div >
4- < h1 > Test Page</ h1 >
5- < p > If you can see this, the routing is working.</ p >
6- </ div >
7- )
1+ import { sortPosts , allCoreContent } from 'pliny/utils/contentlayer'
2+ import { allBlogs } from 'contentlayer/generated'
3+ import Main from './Main'
4+
5+ export default async function Page ( ) {
6+ const sortedPosts = sortPosts ( allBlogs )
7+ const posts = allCoreContent ( sortedPosts )
8+ return < Main posts = { posts } />
89}
Original file line number Diff line number Diff line change 2929 "next-themes" : " ^0.4.6" ,
3030 "pliny" : " 0.4.1" ,
3131 "postcss" : " ^8.4.24" ,
32- "react" : " 19.0 .0" ,
33- "react-dom" : " 19.0 .0" ,
32+ "react" : " 18.2 .0" ,
33+ "react-dom" : " 18.2 .0" ,
3434 "reading-time" : " 1.5.0" ,
3535 "rehype-autolink-headings" : " ^7.1.0" ,
3636 "rehype-citation" : " ^2.3.0" ,
You can’t perform that action at this time.
0 commit comments