Skip to content

Commit f6f061f

Browse files
Home page fix
1 parent d998a18 commit f6f061f

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

app/page.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
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",

0 commit comments

Comments
 (0)