shithub: hugo

Download patch

ref: 58a183c330539673590dff91190a807122b706db
parent: 75ba84acbf8469667cb41efa89b81526a18d6a0a
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Jan 15 19:06:32 EST 2016

Docs: Add doc for string and int

--- a/docs/content/templates/functions.md
+++ b/docs/content/templates/functions.md
@@ -357,7 +357,16 @@
 </tbody>
 </table>
 
+## Numbers
 
+### int
+
+Creates a `int`.
+
+e.g.
+
+* `{{int "123" }}` → 123
+
 ## Strings
 
 ### chomp
@@ -487,6 +496,14 @@
 
 * `{{slicestr "BatMan" 3}}` → "Man"
 * `{{slicestr "BatMan" 0 3}}` → "Bat"
+
+### string
+
+Creates a `string`.
+
+e.g.
+
+* `{{string "BatMan"}}` → "BatMan"
 
 ### substr