Skip to content

Commit bfe4a9a

Browse files
committed
feat: implement blog listing and detail pages with dynamic metadata and routing
1 parent 61f877b commit bfe4a9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/[locale]/blog/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export async function generateMetadata({
1515
params,
1616
}: MetadataProps): Promise<Metadata> {
1717
const { locale } = await params;
18-
const t = await getTranslations({ locale, namespace: "Blogs" });
18+
const t = await getTranslations({ locale, namespace: "Blog" });
1919

2020
return constructMetadata({
21-
page: "Blogs",
21+
page: "Blog",
2222
title: t("title"),
2323
description: t("description"),
2424
locale: locale as Locale,
@@ -31,7 +31,7 @@ export default async function Page({ params }: { params: Params }) {
3131
const { locale } = await params;
3232
const { posts } = await getPosts(locale);
3333

34-
const t = await getTranslations("Blogs");
34+
const t = await getTranslations("Blog");
3535

3636
return (
3737
<div className="container mx-auto px-4 py-8">

0 commit comments

Comments
 (0)