diff --git a/apps/docs/content/blog/make-a-blog.mdx b/apps/docs/content/blog/make-a-blog.mdx index d28e338c8..bdc11791d 100644 --- a/apps/docs/content/blog/make-a-blog.mdx +++ b/apps/docs/content/blog/make-a-blog.mdx @@ -49,7 +49,7 @@ You can now access the content from `blog`. Create an index page for blog posts. By default, there should be a `(home)` route group with `` inside. -Let's put the index page under it, this way we can get the nice navbar on index page. +Let's put the blog pages under it, this way we can get the nice navbar on our blog site. ```tsx title="app/(home)/blog/page.tsx" import Link from 'next/link'; @@ -70,9 +70,6 @@ export default function Home() { >

{post.data.title}

{post.data.description}

-

- Published on {post.data.date} -

))} @@ -96,8 +93,7 @@ import { notFound } from 'next/navigation'; import Link from 'next/link'; import { InlineTOC } from 'fumadocs-ui/components/inline-toc'; import defaultMdxComponents from 'fumadocs-ui/mdx'; -import { blog } from '@/app/source'; -import { buttonVariants } from '@/components/ui/button'; +import { blog } from '@/lib/source'; export default async function Page(props: { params: Promise<{ slug: string }>; @@ -113,12 +109,7 @@ export default async function Page(props: {

{page.data.title}

{page.data.description}

- - Back - + Back
@@ -153,7 +144,7 @@ And configure metadata: ```tsx title="app/(home)/blog/[slug]/page.tsx" import { notFound } from 'next/navigation'; -import { blog } from '@/app/source'; +import { blog } from '@/lib/source'; export async function generateMetadata(props: { params: Promise<{ slug: string }>;