-{{ end }}
\ No newline at end of file
+{{ end }}
diff --git a/layouts/docs/docsportal_home.html b/layouts/docs/docsportal_home.html
index 1806aab2e339d..cfa922972362d 100644
--- a/layouts/docs/docsportal_home.html
+++ b/layouts/docs/docsportal_home.html
@@ -38,7 +38,7 @@
Understand the basics
Try Kubernetes
-
+
Follow tutorials to learn how to deploy applications in Kubernetes.
@@ -53,7 +53,7 @@
Try Kubernetes
Set up a cluster
-
+
Get Kubernetes running based on your resources and needs.
@@ -70,7 +70,7 @@
Set up a cluster
Learn how to use Kubernetes
-
+
Look up common tasks and how to perform them using a short sequence of steps.
@@ -86,7 +86,7 @@
Learn how to use Kubernetes
Look up reference information
-
+
Browse terminology, command line syntax, API resource types, and setup tool documentation.
@@ -102,7 +102,7 @@
Look up reference information
Contribute to the docs
-
+
Anyone can contribute, whether you’re new to the project or you’ve been around a long time.
@@ -118,7 +118,7 @@
Contribute to the docs
Download Kubernetes
-
+
If you are installing Kubernetes or upgrading to the newest version, refer to the current release notes.
@@ -130,7 +130,7 @@
Download Kubernetes
About the documentation
-
+
This website contains documentation for the current and previous 4 versions of Kubernetes.
-{{ end }}
\ No newline at end of file
+{{ end }}
diff --git a/layouts/shortcodes/blocks/kubernetes-features.html b/layouts/shortcodes/blocks/kubernetes-features.html
index 58aa9109a18ce..03e446b539958 100644
--- a/layouts/shortcodes/blocks/kubernetes-features.html
+++ b/layouts/shortcodes/blocks/kubernetes-features.html
@@ -17,7 +17,7 @@
{{ T "main_kubernetes_features" }}
- {{ $pages := where .Site.Pages ".Params.feature" "!=" nil }}
+ {{ $pages := where site.Pages ".Params.feature" "!=" nil }}
{{range $i, $p := $pages }}
{{ if and (gt $i 0) (modBool $i 2) }}{{ end }}
{{ if modBool $i 2 }}
@@ -33,4 +33,4 @@
Documentation for Kubernetes {{ .Page.Param "version" }} is no longer actively maintained. The version you are currently viewing is a static snapshot.
- For up-to-date documentation, see the latest version.
+ For up-to-date documentation, see the latest version.
diff --git a/layouts/shortcodes/glossary_definition.html b/layouts/shortcodes/glossary_definition.html
index 67b9ecf9b403c..4b94c2240204d 100644
--- a/layouts/shortcodes/glossary_definition.html
+++ b/layouts/shortcodes/glossary_definition.html
@@ -2,11 +2,11 @@
{{- $id := .Get "term_id" -}}
{{- $length := .Get "length" -}}
{{- $prepend := .Get "prepend" }}
-{{- $glossaryBundle := .Site.GetPage "page" "docs/reference/glossary" -}}
+{{- $glossaryBundle := site.GetPage "page" "docs/reference/glossary" -}}
{{- $glossaryItems := $glossaryBundle.Resources.ByType "page" -}}
{{- $term_info := $glossaryItems.GetMatch (printf "%s*" $id ) -}}
{{- if not $term_info -}}
-{{- errorf "[%s] %q: %q is not a valid glossary term_id, see ./docs/reference/glossary/* for a full list" .Page.Site.Language.Lang .Page.Path $id -}}
+{{- errorf "[%s] %q: %q is not a valid glossary term_id, see ./docs/reference/glossary/* for a full list" site.Language.Lang .Page.Path $id -}}
{{- end -}}
{{- with $term_info -}}
{{- if (strings.Contains "short" $length) -}}
@@ -26,4 +26,4 @@
{{- replace . $firstPara $prepended | safeHTML -}}{{ else }}{{- . -}}{{ end -}}
{{- end -}}
{{- end -}}
-{{- end -}}
\ No newline at end of file
+{{- end -}}
diff --git a/layouts/shortcodes/glossary_tooltip.html b/layouts/shortcodes/glossary_tooltip.html
index 2af40e26453f5..01385fa0522a2 100644
--- a/layouts/shortcodes/glossary_tooltip.html
+++ b/layouts/shortcodes/glossary_tooltip.html
@@ -3,11 +3,11 @@
{{- partial "docs/glossary-terms.html" $.Page -}}
{{- $glossary_items := $.Page.Scratch.Get "glossary_items" -}}
{{- if not $glossary_items -}}
-{{- errorf "[%s] No glossary items found" .Page.Site.Language.Lang -}}
+{{- errorf "[%s] No glossary items found" site.Language.Lang -}}
{{- else -}}
{{- $term_info := $glossary_items.GetMatch (printf "%s*" $id ) -}}
{{- if not $term_info -}}
-{{- errorf "[%s] %q: %q is not a valid glossary term_id, see ./docs/reference/glossary/* for a full list" .Page.Site.Language.Lang .Page.Path $id -}}
+{{- errorf "[%s] %q: %q is not a valid glossary term_id, see ./docs/reference/glossary/* for a full list" site.Language.Lang .Page.Path $id -}}
{{- end }}
{{- with $term_info -}}
{{- $text := $text | default $term_info.Title -}}
diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html
index 12bc65b09c733..01462ec64c43e 100644
--- a/layouts/shortcodes/include.html
+++ b/layouts/shortcodes/include.html
@@ -1,7 +1,7 @@
{{/* This will try to find a resource in the "includes" bundle */}}
{{- $name := .Get 0 -}}
{{- if $name -}}
- {{- $bundle := $.Site.GetPage "page" "includes" -}}
+ {{- $bundle := site.GetPage "page" "includes" -}}
{{- with $bundle -}}
{{- $pattern := printf "%s*" $name -}}
{{- range $bundle.Resources -}}
@@ -12,7 +12,7 @@
{{- else -}}
{{/* It is not a resource in the includes bundle. Try to find the page relative to the current. */}}
{{- $path := path.Join $.Page.Dir $name -}}
- {{- $page := $.Page.Site.GetPage "page" $path -}}
+ {{- $page := site.GetPage "page" $path -}}
{{- with $page }}
{{ .Content }}
{{- else -}}
diff --git a/layouts/shortcodes/latest-version.html b/layouts/shortcodes/latest-version.html
index 346c2e54ee3b4..ece9e21df74b5 100644
--- a/layouts/shortcodes/latest-version.html
+++ b/layouts/shortcodes/latest-version.html
@@ -1 +1 @@
-{{ .Site.Params.latest }}
\ No newline at end of file
+{{ site.Params.latest }}
diff --git a/layouts/shortcodes/reference_docs.html b/layouts/shortcodes/reference_docs.html
index 0507355eeecaf..f95a7fc3747a6 100644
--- a/layouts/shortcodes/reference_docs.html
+++ b/layouts/shortcodes/reference_docs.html
@@ -1 +1 @@
-API reference docs
\ No newline at end of file
+API reference docs
diff --git a/layouts/shortcodes/release-branch.html b/layouts/shortcodes/release-branch.html
index 8a18dbad5a139..7c760ebebf84a 100644
--- a/layouts/shortcodes/release-branch.html
+++ b/layouts/shortcodes/release-branch.html
@@ -1,3 +1,3 @@
-{{- $latestVersion := .Site.Params.latest }}
+{{- $latestVersion := site.Params.latest }}
{{- $latestReleaseBranch := printf "release-%s" (replace $latestVersion "v" "") }}
-{{- $latestReleaseBranch }}
\ No newline at end of file
+{{- $latestReleaseBranch }}
diff --git a/layouts/shortcodes/tab.html b/layouts/shortcodes/tab.html
index a169c76f3262b..4db7465af9c29 100644
--- a/layouts/shortcodes/tab.html
+++ b/layouts/shortcodes/tab.html
@@ -15,5 +15,5 @@
{{ $.Parent.Scratch.Add "tabs" (dict "name" $name "include" $include "codelang" $codelang) }}
{{ end }}
{{ else }}
- {{- errorf "[%s] %q: tab shortcode missing its parent" .Page.Site.Language.Lang .Page.Path -}}
-{{ end}}
\ No newline at end of file
+ {{- errorf "[%s] %q: tab shortcode missing its parent" site.Language.Lang .Page.Path -}}
+{{ end}}
diff --git a/layouts/shortcodes/tabs.html b/layouts/shortcodes/tabs.html
index 521a404246e2d..8d2eda0aeed66 100644
--- a/layouts/shortcodes/tabs.html
+++ b/layouts/shortcodes/tabs.html
@@ -28,11 +28,11 @@
{{ end }}
{{ else}}
{{ $path := path.Join $.Page.Dir .include }}
- {{ $page := $.Page.Site.GetPage "page" $path }}
+ {{ $page := site.GetPage "page" $path }}
{{ with $page }}
{{ .Content }}
{{ else }}
- {{ errorf "[%s] tabs include not found for path %q" $.Page.Site.Language.Lang $path}}
+ {{ errorf "[%s] tabs include not found for path %q" site.Language.Lang $path}}
{{ end }}
{{ end }}
{{ end }}
diff --git a/netlify.toml b/netlify.toml
index 02e68053017c1..b0fee252cae5a 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -7,7 +7,7 @@ functions = "functions"
command = "make non-production-build"
[build.environment]
-HUGO_VERSION = "0.52"
+HUGO_VERSION = "0.53"
[context.production.environment]
HUGO_BASEURL = "https://kubernetes.io/"