github gohugoio/hugo v0.97.0

latest releases: v0.138.0, v0.137.1, v0.137.0...
2 years ago

This release comes with language-aware collation of text (for sorting, e.g. with ByTitle, ByLinkTitle and ByParam) (#2180) and localized GroupBy*Date methods (#9745 ).

The new text sorting algorithm means among other things that text with accents in them gets ordered the way you would expect. Before this release:

  • alpha
  • charlie
  • echo
  • sierra
  • zulu
  • émotion

With this release:

  • alpha
  • charlie
  • echo
  • émotion
  • sierra
  • zulu

This release also re-introduces the new server flag --renderStaticToDisk, which enables a new hybrid static filesystem for Hugo's development server. This is great for sites with lots of static content, as it greatly reduces memory consumption while still keeping the fast render times by writing dynamic content to memory (the definition of static content in Hugo is all files mounted in /static and all files in /content that's not content files or a member of a content bundle). With this update, there are now 3 filesystem options when starting the server:

  1. hugo server (default), renders to and serves all files from memory.
  2. hugo server --renderToDisk, renders to and serves all files from disk.
  3. hugo server --renderStaticToDisk (the new hybrid mode), renders to and serves static files from disk, dynamic files from memory.

One final improvement to mention would be the new key option in resources.GetRemote, which, is set, will be used as the cache key. The default behaviour is to calculate the key based on the URL and all the options. This means that you can now do:

{{ $cacheKey := print $url (now.Format "2006-01-02") }}
{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}

This release represents 31 contributions by 6 contributors to the main Hugo code base. @bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @dependabot[bot], @jmooring, and @ifurther for their ongoing contributions. And thanks to @digitalcraftsman for his ongoing work on keeping the themes site in pristine condition.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 19 contributions by 11 contributors. A special thanks to @jmooring, @danielfdickinson, @deining, and @coliff for their work on the documentation site.

Hugo now has:

Changes

Don't miss a new hugo release

NewReleases is sending notifications on new releases.