Hugo 0.87.0 Brings Time Zone Support, Localized Time and Dates, Numbers Backed by Cldr, and More

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 @dependabot[bot], @digitalcraftsman, and @jmooring for their ongoing contributions.

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

Hugo now has:







Related Posts