Skip to content

Commit

Permalink
Merge pull request #396 from significa/feat-add-seo-canonical-url
Browse files Browse the repository at this point in the history
SEO > Add `seo_canonical_url` field for `Page` | `Landing Page` and `Blog Post`
  • Loading branch information
joaogomesdev authored Aug 13, 2024
2 parents 06a73a1 + 80a1bd9 commit 32ced9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/seo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@

<svelte:head>
{#if !inDrawer}
<!-- FYI: Added this seo_canonical_url field only to the 'Page' | 'Landing Page' | 'Blog Post (Author)' content types -->
<link
rel="canonical"
href={$page.data.page?.story?.content?.seo_canonical_url || `${$page.url.toString()}`}
/>

<title>{title || $page.data.page?.story?.content?.seo_title || t('seo.title')}</title>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@SignificaDotCo" />
Expand Down

0 comments on commit 32ced9b

Please sign in to comment.