summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/head.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 0583700..c759d58 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -16,11 +16,7 @@
{{- .Summary | default (printf "%s - %s" .Title .Site.Title) }}{{- else }}
{{- with .Site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}">
<meta name="author" content="{{ (partial "author.html" . ) }}">
-<link rel="canonical" href="{{ .Permalink }}" />
-{{- $canonical := cond (.IsHome) .Site.Params.canonical .Params.canonical }}
-{{- range $canonical }}
-<link rel="canonical" href="{{ trim . " " }}" />
-{{- end }}
+<link rel="canonical" href="{{ if .Params.canonicalURL -}} {{ .Params.canonicalURL }} {{- else -}} {{ .Permalink }} {{- end }}" />
{{- if .Site.Params.analytics.google.SiteVerificationTag }}
<meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" />
{{- end}}