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