feat(seo): add localized route metadata

This commit is contained in:
poyrazavsever
2026-08-31 10:23:53 +03:00
parent 87e6279dec
commit e2c33d6b29
20 changed files with 399 additions and 54 deletions
+10
View File
@@ -1,5 +1,15 @@
import { AboutContent } from "@/components/about-content";
import { PersonJsonLd } from "@/components/json-ld";
import { getStaticPageMetadata } from "@/lib/seo";
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
const { locale } = await params;
return getStaticPageMetadata({ locale, page: "about", path: "/about" });
}
export default function AboutPage() {
return (
+14
View File
@@ -1,4 +1,18 @@
import { ReferencesDetailContent } from "@/components/references-detail-content";
import { getStaticPageMetadata } from "@/lib/seo";
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
const { locale } = await params;
return getStaticPageMetadata({
locale,
page: "references",
path: "/about/references",
});
}
export default function AboutReferencesPage() {
return <ReferencesDetailContent />;
@@ -1,4 +1,18 @@
import { VolunteerCommunityContent } from "@/components/volunteer-community-content";
import { getStaticPageMetadata } from "@/lib/seo";
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
const { locale } = await params;
return getStaticPageMetadata({
locale,
page: "volunteerCommunity",
path: "/about/volunteer-community",
});
}
export default function AboutVolunteerCommunityPage() {
return <VolunteerCommunityContent />;