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