mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
tpl/math: Add log function
It might be very useful for building tag clouds.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
41805dca9e
commit
34c566773a
@@ -43,6 +43,13 @@ func init() {
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.Log,
|
||||
nil,
|
||||
[][2]string{
|
||||
{"{{math.Log 1}}", "0"},
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.Mod,
|
||||
[]string{"mod"},
|
||||
[][2]string{
|
||||
|
Reference in New Issue
Block a user