feat(seo): add localized route metadata
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
import { GalleryContent } from "@/components/gallery-content";
|
||||
import { GALLERY_IMAGES } from "@/data/gallery";
|
||||
import type { Metadata } from "next";
|
||||
import { getStaticPageMetadata } from "@/lib/seo";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Galeri",
|
||||
description: "Poyraz Avsever'in tasarımları, projeleri ve görsel içeriklerinden oluşan galeri portföyü.",
|
||||
};
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ locale: string }>;
|
||||
}) {
|
||||
const { locale } = await params;
|
||||
return getStaticPageMetadata({
|
||||
locale,
|
||||
page: "gallery",
|
||||
path: "/gallery",
|
||||
});
|
||||
}
|
||||
|
||||
export default function GalleryPage() {
|
||||
return <GalleryContent images={GALLERY_IMAGES} />;
|
||||
|
||||
Reference in New Issue
Block a user