Releases: gohugoio/hugo
v0.138.0
This release soft deprecates Page.Scratch and aliases it to Page.Store. The only difference between the two has been that the Page.Scratch
was reset on rebuilds, which becomes problematic when state is written by cached content (typically .Content
). The original motivation behind adding a new and not changing the existing method was to avoid breakage, but in hind-sight, it would have fixed more than it broke.
This release also includes a fix for a data race that I, @bep, introduced in v0.137.0
.
What's Changed
v0.137.1
What's Changed
- common/hugo: Add withdeploy to the version string printed in hugo version ca4fc58 @bep
- markup: Goldmark log "Raw HTML omitted" warning also for inline HTML 4faaaf9 @bep #13013
- build: Add missing withdeploy archive for Windows 94b46c3 @bep #13009
- commands: Print the "deploy not available" error message even if flags provided 2b0b3b8 @bep #13012
- tpl/tplimpl: Create an embedded comment shortcode 801035b @jmooring #13010
v0.137.0
Note that we have no longer build the deploy feature in the standard and extended archives. If you need that, download archives with withdeploy
in the filename. See instalation for details. You can read #12994 for more on the motivation behind this, but for one, it shaves off about 40% of the binary size.
Bug fixes
- Fix stale pages on rebuilds in GetPage with short refs 30d9aea @bep #13004
- Fix some RenderShortcodes error cases 1f23b49 @bep #12854 #12998
- dynacache: Fix potential deadlocks on panics in GetOrCreate e10915f @bep
Improvements
- Do not watch directories with no mounted files in it fcdc454 @bep #12912 #13007
- markup/goldmark: Only log Raw HTML omitted WARN on block entering 6cf23bf @bep #12997
- markup/goldmark: Add warning (using Warnidf) on Goldmark 62a96ce @bep #12997
- resources: Address Dart Sass deprecation of global built-in functions 889308d @jmooring #12961
- github: Adjust test workflow to install Dart Sass v1.80.3 72352f2 @jmooring
- Build without the deploy feature by default 89bd025 @bep #12994 #12994
Dependency Updates
- deps: Upgrade github.com/bep/godartsass/v2 v2.1.0 => v2.2.0 e3304db @bep
- deps: Upgrade github.com/bep/lazycache v0.6.0 => v0.7.0 62567d3 @bep
Documentation
v0.136.5
v0.136.4
v0.136.3
What's Changed
- docker: Fix permission issues in Dockerfile 88d598a @dvdksn #12971 #12970
- Make sure that HugoSites is always closed when done 352be5b @bep
- tpl/strings: Add TrimSpace function d37606d @jmooring #12962
- common/herrors: Fix the deferred error message cleaner regexp f5e54d9 @bep
- tpl/transform: Don't fail on "no data to transform" 42f37b4 @bep #12964
v0.136.2
v0.136.1
v0.136.0
Note that we have much improved the Dockerfile and image this release. But this also means a slightly different way of setting it up. Improved documentation will come soon, but see 41f69a7 #12920 #12885 #12921.
Bug fixes
Improvements
- resources/page: Adjust the permalinks colon implementation a little 6e1c5b6 @bep #12918
- resources/page: Allow colons in permalinks to be escaped e7d0757 @n1xx1 #12918
- commands: Use consistent style when describing subcommands 6b5e117 @Hasaber8 #12897
- config: Imrove uglyurls section test 21366e0 @bep #12926
- create/skeletons: Honor --format flag when creating default archetype 57151a5 @jmooring #12666
- hugolib: Make .Site.Author deprecation warning clearer 5bb22b6 @jvns #12269
- ci: Build multi-platform image with cross-compilation 4a79956 @dvdksn
- tpl/tplimpl: Trim descriptions rather than just chomp 0398458 @chalin
- tailwind: Pin Tailwind 4 test to alpha 26 or later 5b0b663 @jmooring
- resources/page: Treat null dates as zero dates 3f68309 @jmooring #12906
- resources/page: Improve front matter date validation ab03588 @jmooring #12898
- commands: Add "hugo build" as an alias for "hugo" 0450d69 @bep #11391
- markup/goldmark: Change default cell alignment in table render hook 1158e63 @jmooring #12886
- tests: Address deprecation warnings and errors d1ba52f @jmooring
Dependency Updates
- build(deps): bump github.com/tetratelabs/wazero from 1.8.0 to 1.8.1 4985be1 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.20.0 to 0.21.0 db653a8 @dependabot[bot]
- build(deps): bump github.com/yuin/goldmark-emoji from 1.0.3 to 1.0.4 05bbd2c @dependabot[bot]
- build(deps): bump golang.org/x/tools from 0.23.0 to 0.26.0 9b63552 @dependabot[bot]
- build(deps): bump github.com/rogpeppe/go-internal from 1.12.0 to 1.13.1 3223a65 @dependabot[bot]
- build(deps): bump github.com/evanw/esbuild from 0.23.1 to 0.24.0 bc6fc47 @dependabot[bot]
- build(deps): bump github.com/hairyhenderson/go-codeowners ffb41d1 @dependabot[bot]
Documentation
v0.135.0
This is a small release, the main motivation was to finally ... drum roll ... get a tagged Hugo Docker image published. Big thanks to @bmanth60 for the tip that solved this issue.
Improvements
- resources/page: Validate predefined front matter dates 4c02a52 @jmooring #10717
- tailwind: Pin Tailwind 4 test to alpha 24 da72ac2 @bep #12880
- tpl/compare: Use any data type for compare.Conditional condition 0ea796d @jmooring
Dependency Updates
- build(deps): bump golang.org/x/mod from 0.19.0 to 0.21.0 12c9ce3 @dependabot[bot]
- build(deps): bump github.com/bep/helpers from 0.4.0 to 0.5.0 47b0555 @dependabot[bot]
- build(deps): bump golang.org/x/net from 0.28.0 to 0.29.0 e56ea40 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.19.0 to 0.20.0 578442f @dependabot[bot]
- deps: Upgrade github.com/gobuffalo/flect v1.0.2 => v1.0.3 1e690c0 @khayyamsaleem #12827