+ Latest post +
++ {latestPost.metadata.publishedAt} +
++ {latestPost.metadata.title} +
++ {latestPost.metadata.summary} +
+ ++ More posts +
++ 🤪 Waiting on the Noodle team (Ahmed) to write more... +
+diff --git a/public/_static/blog/noodle-resurrection.jpg b/public/_static/blog/noodle-resurrection.jpg new file mode 100644 index 00000000..c9190b4c Binary files /dev/null and b/public/_static/blog/noodle-resurrection.jpg differ diff --git a/src/app/(site)/blog/page.tsx b/src/app/(site)/blog/page.tsx index 6fe3cd3b..c29ce4ae 100644 --- a/src/app/(site)/blog/page.tsx +++ b/src/app/(site)/blog/page.tsx @@ -1,7 +1,45 @@ -export default function BlogPage() { +import { getBlogPosts } from '@/lib/mdx'; +import { Button } from '@/primitives/button'; +import { MoveRightIcon } from 'lucide-react'; +import { notFound } from 'next/navigation'; + +export default async function BlogPage() { + const posts = await getBlogPosts(); + + // TODO: once we have more than one post, we can use this to show the latest post + const latestPost = posts[0]; + + if (!latestPost) { + notFound(); + } + return ( -
+ {latestPost.metadata.publishedAt} +
++ {latestPost.metadata.summary} +
+ ++ 🤪 Waiting on the Noodle team (Ahmed) to write more... +
+