Skip to content

v0.98.0

Compare
Choose a tag to compare
@bep bep released this 28 Apr 11:49
· 1374 commits to master since this release

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