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 <matteo@mb-consulting.dev>

* Update netlify.toml

Applied node update (from my other PR)

Co-authored-by: Dmitry Shurupov <dmitry.shurupov@palark.com>

---------

Signed-off-by: mbianchidev <matteo@mb-consulting.dev>
Co-authored-by: Dmitry Shurupov <dmitry.shurupov@palark.com>
This commit is contained in:
Matteo Bianchi 2024-08-23 17:37:52 +02:00 committed by GitHub
parent 00726c5498
commit b153426c85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1,3 @@
---
headless: true
---

View File

@ -0,0 +1,3 @@
---
headless: true
---

View File

@ -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 }}

View File

@ -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>

View File

@ -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 }}

View File

@ -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/"