From fdd84223a7f21ddebe2b82b14db654ce7697ca64 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 15 May 2024 14:06:12 -0400 Subject: [PATCH] [CI] Ensure that every page has a canonical link (#4492) --- layouts/partials/hooks/head-end.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -}}