mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
4c95b70020
commit
50506ebeac
1 changed files with 8 additions and 0 deletions
|
@ -559,6 +559,14 @@ e.g.
|
|||
* `{{slicestr "BatMan" 3}}` → "Man"
|
||||
* `{{slicestr "BatMan" 0 3}}` → "Bat"
|
||||
|
||||
### split
|
||||
|
||||
Split a string into substrings separated by a delimiter.
|
||||
|
||||
e.g.
|
||||
|
||||
* `{{split "tag1,tag2,tag3" "," }}` → ["tag1" "tag2" "tag3"]
|
||||
|
||||
### string
|
||||
|
||||
Creates a `string`.
|
||||
|
|
Loading…
Reference in a new issue