Skip to content

Commit

Permalink
Update page title to include author name
Browse files Browse the repository at this point in the history
  • Loading branch information
NiallJoeMaher committed Feb 4, 2024
1 parent 781f782 commit ba7acdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/articles/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
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}`,
Expand Down

0 comments on commit ba7acdd

Please sign in to comment.