v0.150.0
gohugoio/hugov0.150.0Sep 8, 2025by bep
AI Summary
This release introduces a significant new feature allowing direct version control for Hugo modules within the configuration file, addressing a long-standing user request. It also includes security environment variable updates and bug fixes for summary truncation logic.
Key Highlights
- Added 'version' config option for module imports in hugo.toml
- Bumped golang.org/x/mod dependency to 0.28.0
- Fixed truncated summary logic for resources/pages
- Added PROGRAMDATA to the OS environment allowlist for security
New Features
- Direct version module imports in hugo.toml
Full Release Notes
The big new feature in this relase is the new `version` config option on [Module imports](https://gohugo.io/configuration/module/#version), which allows you to set the requested module [version query](https://go.dev/ref/mod#version-queries) directly in your Hugo configuration (e.g. `hugo.toml`). This is a feature that have been requested by many, and I (@bep) was reminded about it by [this recent thread](https://discourse.gohugo.io/t/mounting-different-branches-tags-from-the-same-repository/55849/5), which also outlines a common use case for this: Mounting multiple old versions/branches of API documentation into the project. ## What's Changed * build(deps): bump golang.org/x/mod from 0.27.0 to 0.28.0 d1f6a1dc5 @dependabot[bot] * modules: Add support for direct version module imports in hugo.toml 747cf4ad6 @bep #13964 * resources/page: Fix truncated summary logic d8774d7fc @jmooring #13967 #13968 * config/security: Add PROGRAMDATA to the osenv allowlist 3b8947d82 @jmooring