Add canonical link globally

This commit is contained in:
2020-03-29 19:32:51 +02:00
parent 3e6a35f78f
commit 7f155d495f

View File

@@ -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'}