Move src dir

This commit is contained in:
Timothy Pidashev
2024-06-05 09:11:18 -07:00
parent 189774def8
commit ef9522cf3e
42 changed files with 229 additions and 229 deletions
+18
View File
@@ -0,0 +1,18 @@
import { getBlogBySlug, getAllBlogSlug } from "../fetchers"
export async function generateStaticParams() {
return getAllBlogSlug()
}
export default async function BlogPage({
params,
}: {
params: { slug: string }
}) {
const blog = await getBlogBySlug(params.slug)
return (
<main className="prose">
<article>{blog.content}</article>
</main>
)
}