mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Docs: Add doc for string and int
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user