This release adds try, a new general mechanism for handling errors within templates, a new images.Mask image filter, a new images.QR function, a new alignx
option to control horizontal alignment in images.Text, and more.
Note
- Adjust error handling in ToMath vs try (note) dde9d9d @bep #13239
- resources: Replace error handling in GetRemote with try (note) 0918e08 @bep #13216
- For render hooks, only fallback to HTML (or the defaultOutputFormat) template 7699336 @bep #13242
Bug fixes
- common/paths: Fix docstring 8b52626 @jdbaldry
- commands: Fix spelling in comment 60c24fc @bep
- Fix branch resource overlapping bundle path c5a63a3 @bep #13228
- templates: Fix handling of multiple defers in the same template 61d3d20 @bep #13236
- Fix NPX issue with TailwindCSS v4 cfa0801 @bep #13221
- Fix server refresh on 404 template changes d913f46 @bep #13209
Improvements
- tpl/tplimpl: Simplify some test assertions 1fad383 @bep
- tpl/tplimpl: Deprecate twitter shortcode in favor of x shortcode 1191467 @jmooring #13214
- commands: Set up the glboal logger early 4113707 @bep #13265
- commands: Add --printZero to the config command 5bb1564 @bep
- tpl/collections: Use MapRange/SetIterKey/SetIterValue for Where, Sort and Merge de7137c @bep
- tpl/collections: Add BenchmarkWhereMap 956f915 @bep
- tpl/collections: Add BenchmarkSortMap a2a4166 @bep
- tpl/collections: Add Merge benchmark 39f582f @bep
- resources/images: Refactor golden image tests to locate them closer to the implementation 2501de7 @bep
- resources/images: Add some mask tests 06cc867 @bep #13244
- resources/images: Add images.Mask 71fae99 @trickkiste #13244
- tpl/tplimpl: Use plain text for image render hook alt attribute 8af0474 @jmooring
- resources/images: Add some golden tests for images.QR 892b491 @bep
- tpl/images: Change signature of images.QR to images.QR TEXT OPTIONS b13d0a6 @jmooring #13230
- resources/images: Add some golden tests for images.Text d9594a9 @bep
- images.Text: Add "alignx" option for horizontal alignment 4a5cc2d @jlskuz #10849
- images: Rework the golden tests 9cad8d3 @bep
- create: Respect --noBuildLock in hugo new 2a7bb1c @bep
- tpl/images: Format the QR hashes as hex 5f2adad @bep
- tpl/images: Add images.QR function 4ea94c4 @jmooring #13205
- Add try 5d2cbee @bep #9737
- resources: Add FromOpts for more effective resource creation 723e3f4 @bep
- markup/highlight: Remove noHl option 2db43f8 @jmooring #9885
Dependency Updates
- deps: Upgrade github.com/gohugoio/hashstructure from 0.1.0 to 0.3.0 a2edf04 @bep
- build(deps): bump golang.org/x/tools from 0.28.0 to 0.29.0 f024a50 @dependabot[bot]
- build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 80704bc @dependabot[bot]
- build(deps): bump github.com/evanw/esbuild from 0.24.0 to 0.24.2 b7b49fb @dependabot[bot]
- build(deps): bump github.com/alecthomas/chroma/v2 from 2.14.0 to 2.15.0 a837976 @dependabot[bot]