diff --git a/src/app/themes/[theme]/page.tsx b/src/app/themes/[theme]/page.tsx index 5744507..69d150a 100644 --- a/src/app/themes/[theme]/page.tsx +++ b/src/app/themes/[theme]/page.tsx @@ -5,37 +5,6 @@ import ThemePage from "@/components/theme-page"; import { getAllThemes, getThemeFromId } from "@/lib/themes"; import { Metadata, ResolvingMetadata } from "next"; -export async function generateMetadata( - { params, searchParams }: any, - parent: ResolvingMetadata -): Promise { - const theme = params.theme - const themeData = await getThemeFromId(theme); - if (!themeData) { - return { - title: "Theme not found", - description: "Theme not found", - }; - } - return { - title: themeData.name, - description: themeData.description, - keywords: [themeData.name, themeData.description], - openGraph: { - title: themeData.name, - description: themeData.description, - images: [ - { - url: themeData.image, - width: 500, - height: 500, - alt: themeData.name, - }, - ], - }, - }; -} - export async function generateStaticParams() { const themes = await getAllThemes(); return themes.map((theme) => ({