github gohugoio/hugo v0.98.0

latest releases: v0.126.1, v0.126.0, v0.125.7...
2 years ago

This release is mostly some important upgrades of Hugo's core dependencies, but we have also added crypto.FNV32a template function, which produces 32-bit unsigned integer hashes from a string. We have already many hash functions, but none of them produces an integer, which can be useful, e.g.:

{{ $mystring := "Hugo" }}
{{ $colors := slice "orange" "blue" "green" "steel" "hotpink" }}
{{ $hash := (crypto.FNV32a $mystring) }}
{{ $i := mod $hash (len $colors) }}
{{ $color := index $colors $i }}

This release represents 29 contributions by 3 contributors to the main Hugo code base.

Hugo now has:

Notes

Changes

Don't miss a new hugo release

NewReleases is sending notifications on new releases.