From 3b5049ff3a21832b1da1d6e7a85201ca385f247b Mon Sep 17 00:00:00 2001 From: serg Date: Fri, 10 Apr 2026 12:32:30 +0300 Subject: [PATCH 1/3] update hugo version Signed-off-by: serg --- .prow.yaml | 2 +- Makefile | 2 +- layouts/_default/home.redirects | 2 +- layouts/index.html | 4 ++-- layouts/runbook/list.html | 2 +- netlify.toml | 2 +- themes/kubermatic-docs/layouts/404.html | 2 +- themes/kubermatic-docs/layouts/_default/sitemap.xml | 4 ++-- themes/kubermatic-docs/layouts/partials/header.html | 2 +- themes/kubermatic-docs/layouts/partials/main-header.html | 4 ++-- themes/kubermatic-docs/layouts/partials/menu.html | 2 +- themes/kubermatic-docs/layouts/partials/meta.html | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.prow.yaml b/.prow.yaml index 4927a71b6..db7915655 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -35,7 +35,7 @@ presubmits: clone_uri: "ssh://git@github.com/kubermatic/docs.git" spec: containers: - - image: quay.io/kubermatic/hugo:0.150.0-0 + - image: quay.io/kubermatic/hugo:0.159.1-0 command: - "./hack/ci/verify-hugo.sh" resources: diff --git a/Makefile b/Makefile index dd844fb96..e0b884044 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ preview: --name kubermatic-docs \ -p 1313:1313 \ -w /docs \ - -v `pwd`:/docs quay.io/kubermatic/hugo:0.150.0-0 \ + -v `pwd`:/docs quay.io/kubermatic/hugo:0.159.1-0 \ hugo server -D -F --bind 0.0.0.0 .PHONY: runbook diff --git a/layouts/_default/home.redirects b/layouts/_default/home.redirects index fd2fb7ee0..7c6328f92 100644 --- a/layouts/_default/home.redirects +++ b/layouts/_default/home.redirects @@ -59,7 +59,7 @@ https://cranky-newton-4e6ed2.netlify.com/* https://docs.kubermatic.com/:splat 30 /machine-controller/main/references/operating-systems/ubuntu.en /machine-controller/main/references/operating-systems/ubuntu/ 301! {{- /* # Generate the redirects to stable version of the products */ -}} -{{- $products := .Site.Data.products -}} +{{- $products := hugo.Data.products -}} {{- range $productName, $val := $products -}} {{- if .versions -}} {{- $release := (cond (gt (len .versions) 1) (index .versions 1) (index .versions 0)).release -}} diff --git a/layouts/index.html b/layouts/index.html index a74a52027..3c8f06c3a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -28,14 +28,14 @@ {{partial "cookie-banner.html" .}} {{partial "gtm-noscript.html" .}} {{partialCached "main-header" .}} - {{if .Site.Data.products}} + {{if hugo.Data.products}} {{$bgImage := "/img/main-background.svg"}}
{{with .Params.projects_title}}

{{.}}

{{end}} - {{with (sort .Site.Data.products ".weight")}} + {{with (sort hugo.Data.products ".weight")}}
{{range .}} {{$key := urlize .name}} diff --git a/layouts/runbook/list.html b/layouts/runbook/list.html index 6bb670eb7..10877e9fc 100644 --- a/layouts/runbook/list.html +++ b/layouts/runbook/list.html @@ -4,7 +4,7 @@ {{ $version := path.Base (index (findRE "^([^/]+)/([^/]+)/" .File.Dir) 0) }} -{{ range (index .Site.Data.kubermatic $version).runbook.groups }} +{{ range (index hugo.Data.kubermatic $version).runbook.groups }}

Group {{ .name }}

{{ range .rules }} diff --git a/netlify.toml b/netlify.toml index 73036596a..8f06136b2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build.environment] -HUGO_VERSION = "0.150.0" +HUGO_VERSION = "0.159.1" [context.production] command = "hugo --minify" diff --git a/themes/kubermatic-docs/layouts/404.html b/themes/kubermatic-docs/layouts/404.html index 46ccfc229..babb48c98 100644 --- a/themes/kubermatic-docs/layouts/404.html +++ b/themes/kubermatic-docs/layouts/404.html @@ -3,7 +3,7 @@ {{partial "gtm-script.html" .}} - {{ partial "meta.html" . }} {{partialCached "favicon.html" .}} {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}} + {{ partial "meta.html" . }} {{partialCached "favicon.html" .}} {{ .Scratch.Add "title" "" }}{{ if eq hugo.Data.titles .Title }}{{ .Scratch.Set "title" (index hugo.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}} {{ .Scratch.Get "title" }} {{partialCached "css-includes" .}}