diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 250eaf4b..a00b2d31 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -6,8 +6,11 @@ import { Header } from '../components/Header' import { KnowledgeLink } from '../components/KnowledgeLink' import { allPosts } from 'contentlayer/generated' +import { getSortedPosts } from 'src/lib/getSortedPosts' const Home = () => { + const posts = getSortedPosts(allPosts) + return (
@@ -17,7 +20,7 @@ const Home = () => {
- {allPosts.map((post, key) => { + {posts.map((post, key) => { return (