This release brings significant speedups of collections.Where and collections.Sort – but this is mostly a "spring cleaning" release, to make the API cleaner and simpler to understand/document.
Deprecated
- Site.AllPages is Deprecated
- Site.BuildDrafts is Deprecated
- Site.Languages is Deprecated
- Site.Data is deprecated, use hugo.Data
- Page.Sites and Site.Sites is Deprecated, use hugo.Sites
See this topic for more info.
Removed
These have all been deprecated at least since v0.136.0 and any usage have been logged as an error for a long time:
Template functions
- data.GetCSV / getCSV (use resources.GetRemote)
- data.GetJSON / getJSON (use resources.GetRemote)
- crypto.FNV32a (use hash.FNV32a)
- resources.Babel (use js.Babel)
- resources.PostCSS (use css.PostCSS)
- resources.ToCSS (use css.Sass)
Page methods:
- .Page.NextPage (use .Page.Next)
- .Page.PrevPage (use .Page.Prev)
Paginator:
- .Paginator.PageSize (use .Paginator.PagerSize)
Site methods:
- .Site.LastChange (use .Site.Lastmod)
- .Site.Author (use .Site.Params.Author)
- .Site.Authors (use .Site.Params.Authors)
- .Site.Social (use .Site.Params.Social)
- .Site.IsMultiLingual (use hugo.IsMultilingual)
- .Sites.First (use .Sites.Default)
Site config:
- paginate (use pagination.pagerSize)
- paginatePath (use pagination.path)
File caches:
- getjson cache
- getcsv cache
Notes
- Remove items deprecated <= v0.136.0 (note) af5051e @bep
- hugolib: Move site.Data to hugo.Data, deprecate Site.AllPages/BuildDrafts/Languages 86aa625 @bep #14521
- hugolib: Add Page.Sites to Site.Sites deprecation notice 4148ede @jmooring #14532
- resources/page: Deprecate cascade._target in favor of cascade.target 828ee72 @jmooring #14341
- tpl/tplimpl: Throw error when calling gist shortcode 4384f9b @jmooring #14491
- tpl/tplimpl: Throw error when calling twitter/twitter_simple shortcodes 55d136d @jmooring #14488
Bug fixes
- tpl/internal: Replace deprecated parser.ParseDir and doc.New 4a641d1 @bep #14513
- commands: Fix --panicOnWarning flag having no effect with module version warnings 3f9d0ad @bep #14524
- paths: Fix handling of _ as a path name 32027e5 @khayyamsaleem #14344
- docs: Fix lineNos default value in docs.yaml 498431d @jmooring
- hugolib: Fix term title when taxonomy name contains spaces 773664b @bep #13422
Improvements
- hugolib: Simplify sites collection bba2aed @bep
- hugolib: Adjust hugo.Sites.Default 29b8e17 @bep #14531
- Move common/hugo/HugoInfo to resources/page 3c82340 @bep
- hugolib: Add hugo.Sites and .Site.IsDefault(), modify .Site.Sites ab62320 @jmooring #14479 #14481
- output: Remove unused method 8d19f5a @bep #14522
- Update AI assistance guidelines in CONTRIBUTING.md 7729473 @bep
- tpl/collections: Speed up where and sort performance 47e39af @bep
- commands: Skip chmod for files without owner-write permission 7850e7c @jmooring #14507
- tpl/collections: Add some more benchmarks for where and sort 2e5132d @bep
- all: Change site to project where appropriate 19ab3f5 @jmooring #14504
- markup/highlight: Allow lineNos to be true, false, "inline", or "table" 3158a51 @jmooring #13481
- Upgrade to Go 1.26 b358a65 @bep
- tpl: Move from md5 to xxhash for some in memory keys 8ae5e1a @bep
- testscripts/commands: Update 'future' date to far future e277659 @toddy15 #14486
Dependency Updates
- build(deps): bump google.golang.org/api from 0.255.0 to 0.267.0 d8ec0ee @dependabot[bot]
- build(deps): bump github.com/bep/textandbinarywriter 21be4af @dependabot[bot]
- build(deps): bump github.com/bep/simplecobra from 0.6.1 to 0.7.0 e549016 @dependabot[bot]
- build(deps): bump github.com/bep/tmc from 0.5.1 to 0.6.0 a392906 @dependabot[bot]
- build(deps): bump github.com/gohugoio/hugo-goldmark-extensions/extras 86786c9 @dependabot[bot]
- build(deps): bump github.com/gohugoio/hugo-goldmark-extensions/passthrough 7a7308a @dependabot[bot]
- build(deps): bump golang.org/x/tools from 0.41.0 to 0.42.0 2d1d731 @dependabot[bot]
- build(deps): bump github.com/bep/helpers from 0.6.0 to 0.7.0 b26fbf8 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.35.0 to 0.36.0 7358309 @dependabot[bot]
Build Setup
- snap: Stop building for ppc64el and s390x e6f01bb @jmooring #14519
- Reapply "release: Support alpha, beta, and RC releases" de0c9f3 @jmooring #14466