diff --git a/layouts/partials/hooks/head-end.html b/layouts/partials/hooks/head-end.html index 3b98e62ff41c..9b65af633442 100644 --- a/layouts/partials/hooks/head-end.html +++ b/layouts/partials/hooks/head-end.html @@ -1,3 +1,11 @@ {{ with .Params.canonical_url -}} + -{{ end -}} + +{{- else -}} + + {{ $canonicalURL := .Permalink -}} + + + +{{- end -}}