diff --git a/Dockerfile b/Dockerfile
index d679af852bc4..43ecafd4e6be 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@
ARG ALPINE_VERSION=3.20
ARG GO_VERSION=1.23
ARG HTMLTEST_VERSION=0.17.0
-ARG HUGO_VERSION=0.136.5
+ARG HUGO_VERSION=0.138.0
ARG NODE_VERSION=22
ARG PAGEFIND_VERSION=1.1.1
diff --git a/layouts/_default/cli.html b/layouts/_default/cli.html
index 58c99c2c2c9d..a18752576c22 100644
--- a/layouts/_default/cli.html
+++ b/layouts/_default/cli.html
@@ -5,8 +5,8 @@
{{ else }}
{{ $data = index site.Data .Params.datafile }}
{{ end }}
- {{ .Scratch.Set "headings" slice }}
- {{ .Scratch.Set "subheadings" slice }}
+ {{ .Store.Set "headings" slice }}
+ {{ .Store.Set "subheadings" slice }}
{{ partial "breadcrumbs.html" . }}
@@ -84,11 +84,11 @@
{{ $heading := dict "level" 2 "text" "Description" }}
{{ partialCached "heading.html" $heading "cli-description" }}
{{ $subHeadings := (strings.FindRE `(?m:#{3,4} .*)` .) }}
- {{ $.Scratch.Add "headings" $heading }}
+ {{ $.Store.Add "headings" $heading }}
{{ range $subHeadings }}
{{ $lvl := strings.Count "#" . }}
{{ $txt := strings.TrimLeft "# " . }}
- {{ $.Scratch.Add "headings" (dict "level" $lvl "text" $txt) }}
+ {{ $.Store.Add "headings" (dict "level" $lvl "text" $txt) }}
{{ end }}
{{ . | $.RenderString (dict "display" "block") }}
{{ end }}
@@ -97,7 +97,7 @@
{{ with $opts }}
{{ $heading := dict "level" 2 "text" "Options" }}
{{ partialCached "heading.html" $heading "cli-options" }}
- {{ $.Scratch.Add "headings" $heading }}
+ {{ $.Store.Add "headings" $heading }}
@@ -162,18 +162,18 @@
{{ $heading := dict "level" 2 "text" "Examples" }}
{{ partialCached "heading.html" $heading "cli-examples" }}
{{ $subHeadings := (strings.FindRE `(?m:#{3,4} .*)` .) }}
- {{ $.Scratch.Add "headings" $heading }}
+ {{ $.Store.Add "headings" $heading }}
{{ range $subHeadings }}
{{ $lvl := strings.Count "#" . }}
{{ $txt := strings.TrimLeft "# " . }}
- {{ $.Scratch.Add "headings" (dict "level" $lvl "text" $txt) }}
+ {{ $.Store.Add "headings" (dict "level" $lvl "text" $txt) }}
{{ end }}
{{ $.RenderString (dict "display" "block") . }}
{{ end }}
{{ if eq .Kind "section" }}
{{ $heading := dict "level" 2 "text" "Subcommands" }}
{{ partialCached "heading.html" $heading "cli-subcommands" }}
- {{ $.Scratch.Add "headings" $heading }}
+ {{ $.Store.Add "headings" $heading }}
@@ -202,7 +202,7 @@
{{ T "tableOfContents" }}