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
src/app/blog/page.tsx Normal file
View File

@@ -0,0 +1,18 @@
import Link from "next/link"
import { getBlogs } from "./fetchers"
export default async function BlogsPage() {
const blogs = await getBlogs()
return (
<main>
{blogs.map((blog, i) => (
<article key={i} className="grid grid-cols-4 text-3xl">
<h1>{blog.frontmatter.title}</h1>
<p>{blog.frontmatter.author}</p>
<p>{blog.frontmatter.publishDate}</p>
<Link href={`/blogs/${blog.slug}`}>Read More</Link>
</article>
))}
</main>
)
}