mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-04 08:11:55 +00:00
tpl/crypto: Add example for FNV32a
This commit is contained in:
parent
89c1655ec8
commit
e5f2173169
|
@ -51,6 +51,13 @@ func init() {
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ns.AddMethodMapping(ctx.FNV32a,
|
||||||
|
nil,
|
||||||
|
[][2]string{
|
||||||
|
{`{{ crypto.FNV32a "Hugo Rocks!!" }}`, `1515779328`},
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
ns.AddMethodMapping(ctx.HMAC,
|
ns.AddMethodMapping(ctx.HMAC,
|
||||||
[]string{"hmac"},
|
[]string{"hmac"},
|
||||||
[][2]string{
|
[][2]string{
|
||||||
|
|
Loading…
Reference in a new issue