Hugo Release 0.87.0

Localized Time and Dates and Numbers

Hugo 0.87.0 brings time zone support, localized time and dates and numbers backed by CLDR, and more.

August 3, 2021

Go to Hugo Releases for the release downloads.

Featured Image for Localized Time and Dates and Numbers

Hugo 0.87 brings two long sought-after features: Default time zone support (per language if needed) for dates without zone offset or location info, and localized time and dates and numbers (backed by CLDR).

For more information, see:

  • The time zone config documentation.
  • The time.Format documentation. This function will now give you localized dates (with weekdays and months in the current language). It supports all of Go’s layout syntax, but also some predefined constants, e.g. {{ .Date | time.Format ":date_long" }}.
  • A set of new localized number formatting functions.

Also in this release, we have switched to using go-toml for all things TOML in Hugo. A big thanks to @pelletier for his work on the v2 version. It’s both faster than what we had and TOML v1.0.0 compliant.

This release represents 40 contributions by 4 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to [@dependabotbot], @digitalcraftsman, and @jmooring for their ongoing contributions.

Many have also been busy writing and fixing the documentation in hugoDocs, which has received 1 contributions by 1 contributors.

Hugo now has: