Sourced from github.com/gohugoio/hugo's releases.
v0.149.1
The main motivation behind this release is the Go 1.25.1 upgrade, which comes with a security fix. Hugo does not use the feature in question, but we understand that many Hugo users like to have a clean security report.
Note
Note that CSS minification now targets CSS3, removing certain optimizations that were specific to CSS2.
What's Changed
- Remove noindex meta tag from alias.html 25c0f2408
@lzap- Fix nilpointer on ToC heading 4f2d2b2cc
@bep#11843- tpl/collections: Require collections.D args to be ints b8eb45c9d
@bep#13952- Upgrade to Go 1.25.1 1d90afff1
@bep#13960- Fix config env handling for some slice options e751afa9b
@PikachuTW#13950- minifiers: Update deprecation handling a09b8a60e
@jmooring#11893 #13947 #13948v0.149.0
[!NOTE]
If running on Netlify, make sure you have configured your build with their latest build image, see this issue.Hugo
v0.149.0comes with bug fixes and a set of new features/improvements, notably:
- We now build with the recently released Go 1.25
- A new collections.D template function that generates random sequences of integers using J. S. Vitter’s Method D, by some called The Best Algorithm No One Knows About.
- Two new permalinks tokens,
:sectionslugand:sectionslugs, especially useful in multilingual Hugo projects.- A new
--omitClassCommentsflag onhugo gen chromastyles- Several improvements to how ToC from Markdown gets rendered, see #13401 and #12605.
- A new
formatoption in transform.UnmarshalNote
- Remove test with deprecated path usage 80e973ea5
@bepBug fixes
- create: Fix new content command with future dates bb4e66cd7
@justuswilhelm#12599- Fix server rebuild when adding a new leaf bundle with resources in one go 13b43e611
@bep#13925- Fix rebuild when deleting a content adapter file 87e100e61
@bepImprovements
- tpl/collections: Add an integration test for collections.D 84b512391
@bep- tpl/collections: Add collections.D using Vitter's Method D for sequential random sampling 1ba80874e
@bep- commands: Deprecate --omitEmpty on chromastyles command 61ec7a20a
@bep- commands: Add --omitClassComments to the chromastyles command c289fcaaa
@bep
... (truncated)
57a784e
releaser: Bump versions for release of 0.149.125c0f24
Remove noindex meta tag from alias.html4f2d2b2
Fix nilpointer on ToC headingb8eb45c
tpl/collections: Require collections.D args to be ints1d90aff
Upgrade to Go 1.25.1e751afa
Fix config env handling for some slice optionsa09b8a6
minifiers: Update deprecation handling0071b47
Update README.md70d6299
releaser: Prepare repository for 0.150.0-DEV6624033
releaser: Bump versions for release of 0.149.0