Skip to content

Commit

Permalink
fix: home tab title
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMilanese90 committed Nov 1, 2023
1 parent 5f5d381 commit 76c2cc0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/@shared/Page/Seo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ export default function Seo({
// Remove trailing slash from all URLs
const canonical = `${siteContent?.siteUrl}${uri}`.replace(/\/$/, '')

const pageTitle = title
? `${title} - ${siteContent?.siteTitle}`
: `${siteContent?.siteTitle}${siteContent?.siteTagline}`
const pageTitle =
uri === '/'
? siteContent?.siteTitle
: title
? `${title} - ${siteContent?.siteTitle}`
: `${siteContent?.siteTitle}${siteContent?.siteTagline}`

const datasetSchema = DatasetSchema()

Expand Down

0 comments on commit 76c2cc0

Please sign in to comment.