mirror of
https://github.com/docker/docs.git
synced 2026-06-19 07:35:16 +00:00
50eeca7b4d
## Summary The site fails to build on Hugo 0.162, which no longer allows `templates.Defer` inside a `partialCached` partial. `head.html` called `utils/css.html` (which defers with a global key) via `partialCached`. This switches that call to `partial` — the global Defer key already dedupes the work, so caching was redundant — and bumps the pinned Hugo version in the `Dockerfile` and `netlify.toml` to 0.162.1. Verified with a full local build on Hugo 0.162.1 extended (Node 24): clean build, 3332 pages, no template errors. ## Learnings - Hugo 0.162 enforces that `templates.Defer` cannot live inside a `partialCached` partial; the build error points at the deferred template, not the `partialCached` caller, so trace upward to the caching call site. Generated by Claude Code Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>