hugo/docs/content/en/news/0.87.0-relnotes/index.md
2021-10-31 13:53:55 +01:00

10 KiB


date: 2021-08-03 title: "Localized Time and Dates and Numbers" description: "Hugo 0.87.0 brings time zone support, localized time and dates and numbers backed by CLDR, and more." categories: ["Releases"]

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 contributions by 1 contributors.

Hugo now has:

Notes

Enhancements

Templates

Other

Fixes

Other