Skip to content

Commit

Permalink
feat(seo): adds canonical url to some content types
Browse files Browse the repository at this point in the history
  • Loading branch information
joaogomesdev committed Aug 13, 2024
1 parent 06a73a1 commit 80a1bd9
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 80a1bd9

Please sign in to comment.