mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
fe929114d3
commit
4502c4e3ae
1 changed files with 6 additions and 0 deletions
|
@ -610,6 +610,12 @@ e.g.
|
|||
* `{{substr "BatMan" 0 -3}}` → "Bat"
|
||||
* `{{substr "BatMan" 3 3}}` → "Man"
|
||||
|
||||
### hasPrefix
|
||||
|
||||
HasPrefix tests whether a string begins with prefix.
|
||||
|
||||
* `{{ hasPrefix "Hugo" "Hu" }}` → true
|
||||
|
||||
### title
|
||||
Converts all characters in string to titlecase.
|
||||
|
||||
|
|
Loading…
Reference in a new issue