Skip to content

Releases: gohugoio/hugo

v0.129.0

17 Jul 13:42
@bep bep
Compare
Choose a tag to compare

This release brings a rewrite of the logic around browser refreshes when running hugo server. We have seen some situations where asset changes (e.g. image/CSS/JS) has not been refreshed reliably in all browsers, even with the developer console open and the cache disabled. We suspect this comes from a recent browser bug (typically: Works fine in Safari, does not refresh in Chrome). The strategy we've been using when a change triggers multiple changes (e.g. both HTML and CSS) is to do one "browser force refresh", which in LiveReload ends up as a window.location.reload(). With this release we:

  1. Are more specific about what we refresh, but fall back to "force refresh" for bigger change sets.
  2. INFO log exactly what we do in these situations with the prefix livereload.

Start the server with:

hugo server --logLevel info

And you should see how Hugo handles browser updates when you change content/templates etc.

A related tip; start the server with

hugo server --logLevel info -N

Hugo will navigate to the content file you're changing and log it in the console.

Also new in this release a new xxHash hashing function that is much faster than any of the other hashing functions in Hugo, especially for larger inputs.

Note

We have upgraded the integration with Git used to load GitInfo to be part of Hugo's Security Policy. We have added git to the default whitelist, but if you have a custom security policy, you may have to update that.

Bug fixes

Improvements

Dependency Updates

  • deps: Upgrade github.com/bep/gitmap v1.4.0 => v1.6.0 (note) 7be0377 @bep #8627
  • deps: Go mod tidy 439f07e @bep
  • deps: Upgraded github.com/tdewolff/minify/v2 v2.20.20 => v2.20.36 ce5a2ce @bep
  • deps: Upgrade to golang.org/x/image v0.18.0 0f42d97 @bep

v0.128.2

04 Jul 08:29
@bep bep
Compare
Choose a tag to compare

What's Changed

  • Fix site.GetPage, never do short lookups for paths with leadig slash 8cf96f2 @bep #12638

v0.128.1

02 Jul 08:10
@bep bep
Compare
Choose a tag to compare

What's Changed

v0.128.0

25 Jun 16:32
@bep bep
Compare
Choose a tag to compare

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

Improvements

Dependency Updates

Build Setup

Documentation

v0.127.0

05 Jun 10:44
@bep bep
Compare
Choose a tag to compare

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

02 Jun 13:20
@bep bep
Compare
Choose a tag to compare

v0.126.2

30 May 16:53
@bep bep
Compare
Choose a tag to compare

Bug fixes

Improvements

v0.126.1

15 May 10:55
@bep bep
Compare
Choose a tag to compare

What's Changed

v0.126.0

14 May 13:37
@bep bep
Compare
Choose a tag to compare

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

Dependency Updates

Documentation

Build Setup

v0.125.7

08 May 15:05
@bep bep
Compare
Choose a tag to compare

Note that this release is only relevant if you use Hugo's openapi3.Unmarshal template function.

What's Changed

  • deps: Downgrade github.com/getkin/kin-openapi v0.124.0 => v0.123.0 3c6260f @bep