Skip to content

Commit b153426

Browse files
mbianchidevshurup
andauthored
Fixed flag deprecations and updated Hugo version to latest (#47612)
* Fixed flag deprecations and updated Hugo version to latest * Removed deprecated flag from css.html * Includes fix for Hindi and Russian Signed-off-by: mbianchidev <[email protected]> * Update netlify.toml Applied node update (from my other PR) Co-authored-by: Dmitry Shurupov <[email protected]> --------- Signed-off-by: mbianchidev <[email protected]> Co-authored-by: Dmitry Shurupov <[email protected]>
1 parent 00726c5 commit b153426

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

content/hi/includes/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
headless: true
3+
---

content/ru/includes/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
headless: true
3+
---

layouts/docs/baseof.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
{{ partial "docs/auto-generated-pageinfo.html" . }}
4343
{{- end -}}
4444
{{- end -}}
45-
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
45+
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
4646
{{ partial "feedback.html" .Site.Params.ui.feedback }}
4747
{{ end }}
4848
{{ partial "page-meta-lastmod.html" . }}
49-
{{ if (.Site.DisqusShortname) }}
49+
{{ if (.Site.Config.Services.Disqus.Shortname) }}
5050
<br />
5151
{{ partial "disqus-comment.html" . }}
5252
{{ end }}

layouts/partials/css.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- All former base stylesheet links commented out as we are using Docsy for styles. -->
22

3-
{{ $inServerMode := site.IsServer }}
3+
{{ $inServerMode := hugo.IsServer }}
44

55
<!--begin splitter-->
66
<style>

layouts/partials/scripts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{{ $jsSearch = resources.Get "js/offline-search.js" }}
1212
{{ end }}
1313
{{ $js := (slice $jsBase $jsAnchor $jsSearch $jsMermaid) | resources.Concat "js/main.js" }}
14-
{{ if .Site.IsServer }}
14+
{{ if hugo.IsServer }}
1515
<script src="{{ $js.RelPermalink }}"></script>
1616
{{ else }}
1717
{{ $js := $js | minify | fingerprint }}

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ command = "git submodule update --init --recursive --depth 1 && make non-product
88

99
[build.environment]
1010
NODE_VERSION = "20.17.0"
11-
HUGO_VERSION = "0.121.2"
11+
HUGO_VERSION = "0.133.0"
1212

1313
[context.production.environment]
1414
HUGO_BASEURL = "https://kubernetes.io/"

0 commit comments

Comments
 (0)