mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 13:47:29 -04:00
tpl/math: Add log function
It might be very useful for building tag clouds.
This commit is contained in:
parent
ab4e5da810
commit
2afe074771
@ -432,6 +432,12 @@ favicon.ico: {{.Width}} x {{.Height}}
|
||||
<td><code>{{div 6 3}}</code> → 2</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><code>math.Log</code></td>
|
||||
<td>Natural logarithm of one float.</td>
|
||||
<td><code>{{math.Log 1.0}}</code> → 0</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><code>mod</code></td>
|
||||
<td>Modulus of two integers.</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user