mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Docs: Add doc for string and int
This commit is contained in:
parent
75ba84acbf
commit
58a183c330
1 changed files with 17 additions and 0 deletions
|
@ -357,6 +357,15 @@ e.g.
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
## Numbers
|
||||
|
||||
### int
|
||||
|
||||
Creates a `int`.
|
||||
|
||||
e.g.
|
||||
|
||||
* `{{int "123" }}` → 123
|
||||
|
||||
## Strings
|
||||
|
||||
|
@ -488,6 +497,14 @@ e.g.
|
|||
* `{{slicestr "BatMan" 3}}` → "Man"
|
||||
* `{{slicestr "BatMan" 0 3}}` → "Bat"
|
||||
|
||||
### string
|
||||
|
||||
Creates a `string`.
|
||||
|
||||
e.g.
|
||||
|
||||
* `{{string "BatMan"}}` → "BatMan"
|
||||
|
||||
### substr
|
||||
|
||||
Extracts parts of a string, beginning at the character at the specified
|
||||
|
|
Loading…
Reference in a new issue