Releases: gohugoio/hugo
Releases · gohugoio/hugo
v0.146.6
v0.146.5
v0.146.4
What's Changed
- tpl: Fix issue with partials without suffix 65c94c7 @bep #13601
- tpl: Avoid panic on nonsensical return construct e8e8ce1 @bep #13600
- tpl: Fix the case for a shortcode in a nested folder only cf9e690 @bep #13605
- tpl: Add proper file context to template parse errors 8a2830f @bep #13604
- tpl: Make {{ template "partials/foo.html" . }} work in older setups 1e0287f @bep #13599
v0.146.3
v0.146.2
v0.146.1
v0.146.0
Note
There's a v0.146.1 bug fix release that fixes a regression introduced in this release.
The big new thing in this release is a fully refreshed template system – simpler and much better. We're working on the updated documentation for this, but see this issue for some more information. We have gone to great lengths to make this as backwards compatible as possible, but make sure you test your site before going live with this new version. This version also comes with a full dependency refresh and some useful new template funcs:
- templates.Current: Info about the current executing template and its call stack. Very useful for debugging.
- time.In: Returns the given date/time as represented in the specified IANA time zone.
Bug fixes
Improvements
- tpl: Warn and skip non-hook templates inside /layouts/_markup 383dd82 @bep #13577
- tpl: Add a partial lookup cache 208a0de @bep #13571
- tpl: Add templates.Current d4c6dd1 @bep #13571
- commands/new: Improve theme creation 24ac6a9 @jmooring #13489 #13544
- tpl/tplimpl: Update embedded pagination template 1e00842 @jmooring
- Reimplement and simplify Hugo's template system 83cfdd7 @bep #13541 #13545 #13515 #7964 #13365 #12988 #4891
- config: Use the non-global logger for deprecations when possible 812ea0b @bep
- tpl/time: Add time.In function 07cbe57 @jmooring #13548
- resources: Add option to silence dependency deprecation warnings c15ebce @jmooring #13530
- common/hreflect: Replace the map/RWMutex method cache with sync.Map 8d2379b @bep
- common/hexec: Remove github.com/cli/safeexec a6bd677 @jmooring #13516
- parser/metadecoder: Improve errors for non-map XML root values f34cdc3 @thevilledev
- identity: Use clear to clear the finder seen map 52561d5 @bep
- cache: Apply httpcache defaults for polling config d28c84a @khayyamsaleem #13471
- tpl/tplimpl: Add loading attribute to Vimeo shortcode b9add1c @jmooring #13445
- commands: Add --omitEmpty flag to gen chromastyles 93df176 @jmooring #13475
- tpl: Add trailing newline to robots.txt template eebea9e @willfaught
- commands: Skip flaky test on Windows 3f2e1c0 @bep #13465
- resources/image: Mark loong64 as FMA-using architecture 3a11d22 @hannesbraun
Dependency Updates
- build(deps): bump github.com/fsnotify/fsnotify from 1.8.0 to 1.9.0 18d2d2f @dependabot[bot]
- build(deps): bump golang.org/x/tools from 0.31.0 to 0.32.0 cd3e349 @dependabot[bot]
- build(deps): bump github.com/evanw/esbuild from 0.25.1 to 0.25.2 8cd799a @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.25.0 to 0.26.0 af0602c @dependabot[bot]
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.3 to 2.2.4 650fe6c @dependabot[bot]
- build(deps): bump github.com/alecthomas/chroma/v2 from 2.15.0 to 2.16.0 d63491b @dependabot[bot]
- build(deps): bump golang.org/x/net from 0.37.0 to 0.39.0 e6e18e9 @dependabot[bot]
- build(deps): bump github.com/bep/imagemeta from 0.10.0 to 0.11.0 43af3bc @dependabot[bot]
- deps: Upgrade github.com/gohugoio/hugo-goldmark-extensions/passthrough v0.3.0 => v0.3.1 10b5543 @jmooring
- build(deps): bump golang.org/x/tools from 0.30.0 to 0.31.0 26d986f @dependabot[bot]
- build(deps): bump github.com/getkin/kin-openapi from 0.129.0 to 0.131.0 ebc0693 @dependabot[bot]
- build(deps): bump github.com/spf13/afero from 1.11.0 to 1.14.0 7ca6bb0 @dependabot[bot]
- build(deps): bump github.com/bep/imagemeta from 0.9.0 to 0.10.0 bddd2f9 @dependabot[bot]
- build(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 1c69135 @dependabot[bot]
- build(deps): bump github.com/evanw/esbuild from 0.24.2 to 0.25.1 17db4ed @dependabot[bot]
- build(deps): bump github.com/bep/godartsass/v2 from 2.4.0 to 2.4.1 3968f91 @dependabot[bot]
- build(deps): bump golang.org/x/net from 0.35.0 to 0.37.0 e9bd237 @dependabot[bot]
- build(deps): bump github.com/bep/godartsass/v2 from 2.3.2 to 2.4.0 f4f21f5 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.24.0 to 0.25.0 61c39ae @dependabot[bot]
- deps: Upgrade golang.org/x/mod v0.23.0 => v0.24.0 2037137 @bep #13484
- build(deps): bump github.com/bep/overlayfs from 0.9.2 to 0.10.0 d78d4cf @dependabot[bot]
- build(deps): bump github.com/bep/lazycache from 0.7.0 to 0.8.0 f9aae15 @dependabot[bot]
- build(deps): bump github.com/bep/imagemeta from 0.8.4 to 0.9.0 b068671 @dependabot[bot]
- build(deps): bump github.com/bep/simplecobra from 0.5.0 to 0.6.0 93d9c05 @dependabot[bot]
Documentation
v0.145.0
The notable new feature is the new transform.PortableText function that makes it possible to use the Sanity CMS with Hugo.
Bug fixes
- all: Typo fixes 4094a1e @coliff
- all: Run modernize -fix ./... 521911a @bep
- readme: Fix relative links in Editions section ab9e545 @martey
- Fix some related content issues with content adapters 381c0da @bep #13443
- Fix potential nilpointer in httpcache config 227e429 @bep
- Fix --printPathWarnings when site calls templates.Defer c3d435a @bep #13420
Improvements
- Use the page path and not the backing filename as the last resort in the default sort c498d0f @bep
- tpl: HTTPS the instagram Shortcode JS 2f4e666 @coliff
- Add transform.PortableText 04f21b4 @bep
- hugolib: Deprecate _build front matter key in favor of build d0ce942 @jmooring
Dependency Updates
- deps: Upgrade github.com/rogpeppe/go-internal v1.13.1 => v1.14.1 6927e6f @bep #13449
- build(deps): bump github.com/yuin/goldmark-emoji from 1.0.4 to 1.0.5 b7ae24b @dependabot[bot]
- build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 1a4851f @dependabot[bot]
- build(deps): bump github.com/tetratelabs/wazero from 1.8.2 to 1.9.0 d1f2330 @dependabot[bot]