www/gohugo: Update to 0.162.0
ChangeLog: https://github.com/gohugoio/hugo/releases/tag/v0.162.0
Bug fixes
- hugolib: Fix Page.GitInfo for modules with go.mod in a repo subdirectory
- Fix typo in CONTRIBUTING.md
- resources: Fix the :counter placeholder
- commands: Fix import from Jekyll
- Fix prevention of direct symlink reads in resources.Get
- commands: Fix github-dark chromastyles
Improvements
- Disallow HTML content by default
- Add image processing support for AVIF
- config: Preserve intentionally empty maps
- hugolib: Merge existing hugo_stats.json when renderSegments is set
- all: Replace RWMutex struct caches with ConcurrentMap
- tpl/tplimpl: Consolidate and improve embedded template integration tests
- parser: Drop empty sub maps from hugo config output
- markup/highlight: Allow overriding type and code via options
- Update AI assistance disclosure requirements
- hugolib: Use AllTranslated in IsTranslated
- tpl: Simplify sitemap template
- tpl: Use AllTranslations in sitemap template
- tpl/collections: Make dict return nil when no values are provided
- Sync Go template package to 1.26.3
- Upgrade to Go 1.26.3
- ci: Check embedded template formatting with gotmplfmt
- tpl: Run gotmplfmt -w .
- markup/goldmark/codeblocks: Always split Chroma options into .Options
- hugolib: Allow empty params front matter
- common/hmaps: Merge slice-valued module config into site config
- tpl: Use GetMatch for both local and global image resources
- Revert "markup/tableofcontents: Skip empty TOC levels"
- tpl/templates: Reject Defer inside partialCached
- common/hexec: Make NODE_PATH a fallback for ESM bare imports
- config: Allow repeating the root key in /config files
- Revise test naming guidelines in AGENTS.md
- Update AGENTS.md
- js: Return error for missing batch imports
- resources/images: Keep smart crop target size
- testing: Use synctest where relevant
- security: Validate redirects against security.http.urls
- markup/tableofcontents: Skip empty TOC levels
- Fall back to hugo.buildDate in hugo.BuildDate() in non-vcs builds
- css: Make css.Build's file-loader URLs absolute to web context root
- hugolib: Don't warn about lang/kind/path coming from cascade.params
- markup/goldmark: Unwrap inner HTML for plain code blocks
- tpl/tplimpl: Extend page image lookup to include global resources
- security: Allow hostnames starting with digits in default http.urls
- commands: Improve description of command flags
Approved by: doceng@ (implicit)
Security: CVE-2026-39826 CVE-2026-39823