Skip to content

Commit

Permalink
docs: add link rel="canonical" to pages (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym authored Nov 12, 2023
1 parent 0fdb9aa commit 7b46d9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/layouts/ComponentLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@
)}`;
</script>
<svelte:head>
<link
rel="canonical"
href="https://svelte.carbondesignsystem.com/components/{component}"
/>
</svelte:head>
<Content data-components>
<Grid class="fix-overflow">
<Row>
Expand Down
4 changes: 4 additions & 0 deletions docs/src/pages/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
</svelte:head>`;
</script>

<svelte:head>
<link rel="canonical" href="https://svelte.carbondesignsystem.com/" />
</svelte:head>

<Content>
<Grid>
<Row>
Expand Down

0 comments on commit 7b46d9b

Please sign in to comment.