Releases: gohugoio/hugo
v0.128.1
v0.128.0
This release brings TailwindCSS v4 (alpha) support. For more info about the TailwindCSS 4 integration, see this repo. Also notable is the new templates.Defer template func and the dramatically improved performance of $page.GetTerms
for bigger sites.
Bug fixes
- tpl/debug: Fix reset of debug timers when running the server c880faa @bep #12621
- Fix Erroridf/Warnidf mixed case issue 8731d88 @bep #12617
- Fix live reload when both CSS and HTML changes ad6d91c @bep #12600
- config: Fix typo 7ee36b3 @razonyang
Improvements
- Add css.TailwindCSS e1317dd @bep #12618 #12620
- Clean up the css related template funcs package structure eddcd2b @bep #12618
- modules: Remove newly introduced "mount source" does not exist warning 16e4662 @bep
- Implement defer 6cd0784 @bep #8086 #12589
- common/hexec: Fall back to the binary in PATH if npx fails 1c85830 @bep #12486
- deploy: Add stripIndexHtml target option d5542ed @depp #12607
- Speed up GetTerms 478a910 @bep #12610
- markup/goldmark: Add the Hugo Goldmark Extras "delete" extension 8efc75b @jmooring #12597
- resources: Update Dart Sass error message 57165d4 @jmooring
- resources/page: Deprecate PageSize in favor of PagerSize 9c3143c @bep #12572
- Rename DefaultPageSize => PagerSize 9f22bc4 @bep
- resources/page: Let GroupByParam return nil instead of error cba2de6 @jmooring #12578
- Add option to not generate aliases for first page of pagination pages 9c4e14e @bep #12572
- js: Support more recent targets with js.Build / esbuild 1cdd3d0 @bep #12575
Dependency Updates
- deps: Upgrade github.com/yuin/goldmark v1.7.2 => v1.7.4 79da24a @jmooring
- deps: Upgrade github.com/yuin/goldmark-emoji v1.0.2 => v1.0.3 b187c06 @jmooring
- deps: Upgrade github.com/alecthomas/chroma v2.13.0 => v2.14.0 8cf94ae @jmooring #12580
- deps: Upgrade github.com/evanw/esbuild v0.20.2 => v0.21.4 b57306d @bep #12575
Build Setup
Documentation
v0.127.0
This release brings proper HTTP caching and live reloading of remote resources fetched with resources.GetRemote, especially useful when used with content adapters.
Note that this isn't enabled out of the box, so if you need this, you need to add some configuration. The demo below is configured as:
[httpcache]
[httpcache.cache]
[httpcache.cache.for]
includes = ['https://sheets.googleapis.com/**']
[[httpcache.polls]]
low = '1s'
high = '30s'
[httpcache.polls.for]
includes = ['https://sheets.googleapis.com/**']
hugodemo__v0127.mp4
What's Changed
v0.126.3
- content adapter: Fix site.GetPage using the base part of the path 917199a @bep #12561
- resources/page: Deprecate .Sites.First in favor of .Sites.Default c8dac67 @jmooring #12513
- metrics: Increase maximum length of cumulative duration to 15 0068f03 @razonyang
- content adapter: Handle more separator in content.value 0221ddb @bep #12556
v0.126.2
Bug fixes
- content adapter: Fix server crash on partial edit 1464091 @bep #12538
- content adapter: Fix issue with content starting out with a shortcode 519f41d @bep #12544
- tpl/tplimpl: Resolve render hook destinations with leading ./ b893a09 @jmooring #12514
Improvements
- Delete .github/workflows/test-dart-sass-v1.yml 2c88e45 @bep
- commands: Add shorthand flags -M (--renderToMemory) and -N (--navigateToChanged) eaa42a8 @bep #12530
- content adapter: Add support for menus in AddPage 245928a @bep #12507
- hugolib: Allow override of sitemap file name 7f30617 @jmooring #12525
- commands: Improve list command 931e096 @jmooring #12520
- config: Remove extraneous BuildConfig setting 548dc21 @jmooring #12519
- Also warn about duplicate content paths with --printPathWarnings 6b00661 @bep #12511
v0.126.1
v0.126.0
This release brings, drum roll, a long-awaited Hugo feature that has had many names. At one point we named it pages from data. You can read all about it in the documentation where it's titled Content Adapters.
Also worth mentioning are the new Extras Goldmark Extensions, which allows you to enable Markdown syntax for inserted text, mark text, subscript and superscript. A big thanks to @bowman2001 for the implementation.
Improvements
- tpl/tplimpl: Plainify title and description in twitter_cards.html 74ab839 @jmooring #12433
- tpl/tplimpl: Plainify title and description in schema.html 92290aa @jmooring #12432
- resources/images: Handle NaN EXIF latitude and longitude 6dbbe6d @jmooring #12490
- Create pages from _content.gotmpl e2d66e3 @bep #12427 #12485 #6310 #5074
- create/skeletons: Remove superfluous language code fallback 55dea41 @jmooring #12479
- tpl/tplimpl: Improve locale value in opengraph.html 87ab7f7 @jmooring #12480
- tpl/tplimpl: Retain query string and fragment in render-image.html 6dfeb9f @jmooring #12468
- markup/goldmark: Support extras extension ca9a77e @jmooring
Dependency Updates
- build(deps): bump golang.org/x/net from 0.24.0 to 0.25.0 ee26e69 @dependabot[bot]
- build(deps): bump golang.org/x/image from 0.15.0 to 0.16.0 6e83d00 @dependabot[bot]
Documentation
Build Setup
v0.125.7
v0.125.6
What's Changed
- Fix one more resource change eviction logic issue bb59a7e @bep #12395 #12456
- Make the cache eviction logic for stale entities more robust 503d209 @bep #12458
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.1 to 2.2.2 68e9532 @dependabot[bot]
- Run mage generate 9cd7db6 @bep
- resources/page: Pull internal Page methods into its own interface c892e75 @bep