Skip to content

Commit

Permalink
Change how titles work a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
danmindru committed Nov 17, 2024
1 parent 39b94fb commit 28708fa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions shipixen/app/seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ export function genPageMetadata({
image,
canonical,
metaTitle,
deal,
...rest
}: PageSEOProps): Metadata {
const seoTitle = deal
? `${title} | ${deal}`
: `${title} | ${siteConfig.title}`;

return {
title,
title: seoTitle,
description,
openGraph: {
title: `${metaTitle ? `${metaTitle} | ${siteConfig.title}` : title} | ${siteConfig.title}`,
title,
description: description || siteConfig.description,
url: './',
siteName: siteConfig.title,
Expand Down

0 comments on commit 28708fa

Please sign in to comment.