mirror of
https://github.com/docker/docs.git
synced 2026-06-19 07:35:16 +00:00
build: bump Hugo to 0.162.1 and fix deferred CSS template
Hugo 0.162 disallows templates.Defer inside a partialCached partial. The CSS partial uses templates.Defer with a global key, so switch its caller in head.html from partialCached to partial (the global Defer key already dedupes the work). Bump the pinned Hugo version in the Dockerfile and netlify.toml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
/>
|
||||
{{- end -}}
|
||||
{{ end -}}
|
||||
{{ partialCached "utils/css.html" "-" "-" }}
|
||||
{{ partial "utils/css.html" . }}
|
||||
<link href="/pagefind/pagefind-component-ui.css" rel="stylesheet" />
|
||||
{{- if hugo.IsProduction -}}
|
||||
<script
|
||||
|
||||
Reference in New Issue
Block a user