Skip to content

Commit

Permalink
Fixed flag deprecations and updated Hugo version to latest (#47612)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
mbianchidev and shurup authored Aug 23, 2024
1 parent 00726c5 commit b153426
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions content/hi/includes/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
headless: true
---
3 changes: 3 additions & 0 deletions content/ru/includes/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
headless: true
---
4 changes: 2 additions & 2 deletions layouts/docs/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
{{ partial "docs/auto-generated-pageinfo.html" . }}
{{- end -}}
{{- end -}}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
{{ end }}
{{ partial "page-meta-lastmod.html" . }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/css.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- All former base stylesheet links commented out as we are using Docsy for styles. -->

{{ $inServerMode := site.IsServer }}
{{ $inServerMode := hugo.IsServer }}

<!--begin splitter-->
<style>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ $jsSearch = resources.Get "js/offline-search.js" }}
{{ end }}
{{ $js := (slice $jsBase $jsAnchor $jsSearch $jsMermaid) | resources.Concat "js/main.js" }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<script src="{{ $js.RelPermalink }}"></script>
{{ else }}
{{ $js := $js | minify | fingerprint }}
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ command = "git submodule update --init --recursive --depth 1 && make non-product

[build.environment]
NODE_VERSION = "20.17.0"
HUGO_VERSION = "0.121.2"
HUGO_VERSION = "0.133.0"

[context.production.environment]
HUGO_BASEURL = "https://kubernetes.io/"
Expand Down

0 comments on commit b153426

Please sign in to comment.