Add canonical link globally
This commit is contained in:
@@ -65,20 +65,21 @@
|
||||
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { stores } from '@sapper/app'
|
||||
import {
|
||||
site,
|
||||
continents,
|
||||
countries,
|
||||
locations
|
||||
} from '../utils/store'
|
||||
import { stores } from '@sapper/app'
|
||||
|
||||
// Components
|
||||
import Transition from '../utils/Transition'
|
||||
import AnalyticsTracker from '../utils/AnalyticsTracker'
|
||||
|
||||
// Props
|
||||
// Props and variables
|
||||
export const segment = null
|
||||
const { page } = stores()
|
||||
|
||||
|
||||
/*
|
||||
@@ -102,6 +103,10 @@
|
||||
@import "../style/style.scss";
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<link rel="canonical" href={`https://${$page.host}${$page.path}`} />
|
||||
</svelte:head>
|
||||
|
||||
<slot></slot>
|
||||
|
||||
{#if process.env.CONFIG.TRANSITION === 'true'}
|
||||
|
||||
Reference in New Issue
Block a user