v0.157.0

gohugoio/hugov0.157.0Feb 25, 2026by bep

AI Summary

Adds GitInfo support for Hugo Modules and introduces partial support for new image formats like AVIF and HEIF.

Key Highlights

  • Add GitInfo support for content from Git modules.
  • Add partial support for AVIF, HEIF, and HEIC image formats (metadata only).
  • Adjust WebP processing defaults.
  • Add per-request timeout option to `resources.GetRemote`.

New Features

  • GitInfo support for Hugo Modules.
  • Partial support for AVIF, HEIF, and HEIC images.

Full Release Notes

The notable new feature is [GitInfo support for Hugo Modules](https://gohugo.io/methods/page/gitinfo/#module-content). See [this repo](https://github.com/bep/hugo-testing-git-versions) for a runnable demo where multiple versions of the same content is mounted into different versions.

## Bug fixes

* Fix menu pageRef resolution in multidimensional setups 3dff7c8c @bep #14566 
* docs: Regen and fix the imaging docshelper output 8e28668b @bep #14562 
* hugolib: Fix automatic section pages not replaced by sites.complements a18bec11 @bep #14540 

## Improvements

* Handle GitInfo for modules where Origin is not set when running go list d98cd4ae @bep #14564 
* commands: Update link to highlighting style examples 68059972 @jmooring #14556 
* Add AVIF, HEIF and HEIC partial support (only metadata for now) 49bfb107 @bep #14549 
* resources/images: Adjust WebP processing defaults b7203bbb @jmooring 
* Add Page.GitInfo support for content from Git modules dfece5b6 @bep #14431 #5533 
* Add per-request timeout option to `resources.GetRemote` 2d691c7e @vanbroup 
* Update AI Watchdog action version in workflow b96d58a1 @bep 
* config: Skip taxonomy entries with empty keys or values 65b4287c @bep #14550 
* Add guideline for brevity in code and comments cc338a9d @bep 
* modules: Include JSON error info from go mod download in error messages 3850881f @bep #14543 

## Dependency Updates

* build(deps): bump github.com/tdewolff/minify/v2 from 2.24.8 to 2.24.9 9869e71a @dependabot[bot] 
* build(deps): bump github.com/bep/imagemeta from 0.14.0 to 0.15.0 8f47fe8c @dependabot[bot]