diff options
author | Niels Gouman <mail@nielsgouman.nl> | 2020-10-07 22:14:20 +0300 |
---|---|---|
committer | Niels Gouman <mail@nielsgouman.nl> | 2020-10-07 22:14:20 +0300 |
commit | e2ccfddac1f6c343a4bfb72246a64456b78a8a35 (patch) | |
tree | c903536bafe19ee15ddaf2653eb32f9cc1ac19b7 /layouts | |
parent | f7814f15000809532d6335793b18df371bcbe6d8 (diff) |
Add canonical tag for improved SEO (and prevents duplicate content if deploying the site to multiple environments, such as staging and production)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8c2181e..9970a88 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,6 +2,7 @@ <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>{{ if .IsPage }} {{ .Title }} | {{ end }}{{ .Site.Title }}</title> + <link rel = 'canonical' href = '{{ .Permalink }}'> {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="robots" content="all,follow"> |