From ba7acdde12c74957c6e346cb29b129f2f19700a8 Mon Sep 17 00:00:00 2001 From: Niall Maher Date: Sun, 4 Feb 2024 19:20:53 +0000 Subject: [PATCH] Update page title to include author name --- app/articles/[slug]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/articles/[slug]/page.tsx b/app/articles/[slug]/page.tsx index ce25f797..d8203a33 100644 --- a/app/articles/[slug]/page.tsx +++ b/app/articles/[slug]/page.tsx @@ -26,7 +26,7 @@ export async function generateMetadata({ params }: Props): Promise { if (!post) return {}; const host = headers().get("host") || ""; return { - title: post.title, + title: `${post.title} | by ${post.user.name} | CodĂș`, authors: { name: post.user.name, url: `https://www.${host}/${post.user.username}`,