hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit e5f21731696bd4a9a396936b18d9ae72291b01b1
parent 89c1655ec88cd7286c2ed5f9b7eaed35af9cda52
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu, 28 Apr 2022 17:47:17 +0200

tpl/crypto: Add example for FNV32a

Diffstat:
Mtpl/crypto/init.go | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/tpl/crypto/init.go b/tpl/crypto/init.go
@@ -51,6 +51,13 @@ func init() {
 			},
 		)
 
+		ns.AddMethodMapping(ctx.FNV32a,
+			nil,
+			[][2]string{
+				{`{{ crypto.FNV32a "Hugo Rocks!!" }}`, `1515779328`},
+			},
+		)
+
 		ns.AddMethodMapping(ctx.HMAC,
 			[]string{"hmac"},
 			[][2]string{