From 43a7be6495c4395d15c40909b5bd9af872a386ed Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Thu, 1 Oct 2020 17:47:45 +0100 Subject: [PATCH 1/2] 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 }}
From 12cb34ba3a8b18e1977a30c6c7539c1c871a939b Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Thu, 1 Oct 2020 17:48:32 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Set=20canonicalUrl=20for=20=E2=80=9CContrib?= =?UTF-8?q?uting=20to=20the=20Development=20Guide=E2=80=9D=20article?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2020-10-01-contributing-to-the-development-guide/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/blog/_posts/2020-10-01-contributing-to-the-development-guide/index.md b/content/en/blog/_posts/2020-10-01-contributing-to-the-development-guide/index.md index d038181601c99..5c2940c1a7db7 100644 --- a/content/en/blog/_posts/2020-10-01-contributing-to-the-development-guide/index.md +++ b/content/en/blog/_posts/2020-10-01-contributing-to-the-development-guide/index.md @@ -4,6 +4,7 @@ linkTitle: "Contributing to the Development Guide" Author: Erik L. Arneson Description: "A new contributor describes the experience of writing and submitting changes to the Kubernetes Development Guide." date: 2020-10-01 +canonicalUrl: https://www.kubernetes.dev/blog/2020/09/28/contributing-to-the-development-guide/ resources: - src: "jorge-castro-code-of-conduct.jpg" title: "Jorge Castro announcing the Kubernetes Code of Conduct during a weekly SIG ContribEx meeting."