Update to Hugo 0.53 and remove all .Site references (#12079)

* Remove all .Site variable references

* Update Hugo version in Travis CI config and Makefile
This commit is contained in:
Luc Perkins
2019-02-05 08:33:23 -08:00
committed by Kubernetes Prow Robot
parent 2ccb5d61c6
commit c6dd35ba51
37 changed files with 84 additions and 84 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
{{/* This file contains some common template definitions used in the blocks shortcodes.
The reasoning behind the long and hard-to-remember template names is that these templates are global. */}}
{{ define "shortcodes-blocks_getimage" }}
{{- $cr := .ctx.Site.GetPage "/_common-resources" -}}
{{- $cr := site.GetPage "/_common-resources" -}}
{{- with $cr -}}
{{- $image := $cr.Resources.GetMatch (printf "images/**%s*" $.name ) -}}
{{- with $image -}}
@@ -12,4 +12,4 @@ The reasoning behind the long and hard-to-remember template names is that these
{{- else -}}
{{ errorf "[%s] No resource bundle found. Create an empty headless bundle; create content/%s/_common-resources/index.md with \"headless: true\" in front matter. See https://gohugo.io/content-management/page-bundles/#headless-bundle" $.ctx.Page.Lang $.ctx.Page.Lang }}
{{- end -}}
{{- end -}}
{{- end -}}
+2 -2
View File
@@ -1,4 +1,4 @@
{{ $caseStudiesSection := .Site.GetPage "case-studies" }}
{{ $caseStudiesSection := site.GetPage "case-studies" }}
{{ if not $caseStudiesSection }}
{{ errorf "[%s] No case-studies section found. Create content/%s/case-studies/_index.md" $.Page.Lang $.Page.Lang }}
{{ else }}
@@ -19,4 +19,4 @@
<h5 style="text-align: center"><a href="/case-studies/" style="color: #3371E3; font-weight: 400">{{ $caseStudiesSection.LinkTitle }}</a></h5>
</main>
</section>
{{ end }}
{{ end }}
@@ -17,7 +17,7 @@ Note that markdown can be used in the description.
<section id="features">
<main>
<h3 class="center">{{ T "main_kubernetes_features" }}</h3>
{{ $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) }}</div>{{ end }}
{{ if modBool $i 2 }}
@@ -33,4 +33,4 @@ Note that markdown can be used in the description.
{{ end }}
</main>
</section>
</section>