From 43a7be6495c4395d15c40909b5bd9af872a386ed Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Thu, 1 Oct 2020 17:47:45 +0100 Subject: [PATCH] If a blog article has a canonical URI set, link to it This change lets us point search engines to the original article when we mirror them from https://k8s.dev/ and potentially from other sites too. --- layouts/blog/baseof.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html index f208811236474..d801da9d8a033 100644 --- a/layouts/blog/baseof.html +++ b/layouts/blog/baseof.html @@ -4,6 +4,9 @@ {{ partial "head.html" . }} {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} + {{ with .Params.canonicalUrl }} + + {{ end }}