diff --git a/src/app/blog/[slug]/page.tsx b/src/app/blog/[slug]/page.tsx index 503c735..a8684fd 100644 --- a/src/app/blog/[slug]/page.tsx +++ b/src/app/blog/[slug]/page.tsx @@ -9,7 +9,7 @@ import config from "~/config"; export type PageProps = Promise<{ slug: string }>; export async function generateStaticParams() { - const posts = await getBlogPosts(); + const posts = getBlogPosts(); return posts.map((post) => ({ slug: post.slug })); } diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index b378bdf..9ee4099 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -9,8 +9,8 @@ export const metadata = { description: "A collection of insightful tutorials, guides, and various topics of interest by Jake McQuade.", }; -export default function Blog() { - const posts = await getBlogPosts(); +export default async function Blog() { + const posts = getBlogPosts(); return (
diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d021926..422f0d5 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,15 +1,16 @@ import type { Metadata, Viewport } from "next"; -import { Inter } from "next/font/google"; import { ReactNode } from "react"; +import { Inter } from "next/font/google"; import Script from "next/script"; import { ThemeProvider } from "~/components/theme"; // import MouseEffect from "~/components/mouse"; import Footer from "~/components/footer"; -import { cn } from "~/lib/utils"; import config from "~/config"; const font = Inter({ subsets: ["latin"], variable: "--font-sans" }); + + export const viewport: Viewport = { width: "device-width", initialScale: 1, @@ -75,7 +76,7 @@ export default function RootLayout({ children }: Readonly<{ children: ReactNode return ( - + {children}