Skip to content

Commit 3b57a36

Browse files
authored
Merge pull request #24333 from sftim/20201001_support_canonical_uris_for_blog_articles
Support canonical URIs for blog articles
2 parents f7cdc09 + 12cb34b commit 3b57a36

File tree

2 files changed

+4
-0
lines changed
  • content/en/blog/_posts/2020-10-01-contributing-to-the-development-guide
  • layouts/blog

2 files changed

+4
-0
lines changed

content/en/blog/_posts/2020-10-01-contributing-to-the-development-guide/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ linkTitle: "Contributing to the Development Guide"
44
Author: Erik L. Arneson
55
Description: "A new contributor describes the experience of writing and submitting changes to the Kubernetes Development Guide."
66
date: 2020-10-01
7+
canonicalUrl: https://www.kubernetes.dev/blog/2020/09/28/contributing-to-the-development-guide/
78
resources:
89
- src: "jorge-castro-code-of-conduct.jpg"
910
title: "Jorge Castro announcing the Kubernetes Code of Conduct during a weekly SIG ContribEx meeting."

layouts/blog/baseof.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
{{ partial "head.html" . }}
55
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
66
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
7+
{{ with .Params.canonicalUrl }}
8+
<link rel="canonical" href="{{ . }}">
9+
{{ end }}
710
</head>
811
<body class="td-{{ .Kind }} td-blog">
912
<header>

0 commit comments

Comments
 (0)