Skip to content

Commit

Permalink
Fix wrong metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Umali committed Oct 13, 2023
1 parent f13b29e commit 1a4c863
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/app/guide/[guide_name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function generateMetadata({ params }: { params: { guide_name: strin
const guide = await getGuideByPathMetadata(params.guide_name);

return {
title: `How to make ${guide.data.metadata.title}`,
title: `${guide.data.metadata.title}`,
description: guide.data.metadata.description,
keywords: ["DIY How-to Guides", "MakeMeDIYspire Tutorials", "DIY Project Instructions", "Step-by-Step DIY", "DIY Project Help", "DIY Creation Guide", "DIY Project Steps"],
metadataBase: new URL("https://www.diyspire/guide/" + guide.data.path),
Expand Down
13 changes: 11 additions & 2 deletions client/app/project-detail/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,18 @@ export async function generateMetadata({ params }: { params: { id: string } }):
const sharedLinkData = await getShareLinkDataMetadata(params.id);

return {
title: sharedLinkData.data.title + ` | MakeMeDIYspire`,
title: `How to make ${sharedLinkData.data.title} | MakeMeDIYspire`,
description: sharedLinkData.data.description,
keywords: ["DIY Project Details", "MakeMeDIYspire Tutorials", "DIY Project Instructions", "Step-by-Step DIY", "DIY Project Help", "DIY Creation Guide", "DIY Project Steps"],
keywords: [
"DIY Project Details",
"MakeMeDIYspire Tutorials",
"DIY Project Instructions",
"Step-by-Step DIY",
"DIY Project Help",
"DIY Creation Guide",
"DIY Project Steps",
...sharedLinkData.data.tags,
],
metadataBase: new URL("https://www.diyspire/project-detail/" + params.id),
applicationName: "MakeMeDIYspire",
};
Expand Down

1 comment on commit 1a4c863

@vercel
Copy link

@vercel vercel bot commented on 1a4c863 Oct 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.