mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-17 05:23:44 +00: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" 0 -3}}` → "Bat"
|
||||||
* `{{substr "BatMan" 3 3}}` → "Man"
|
* `{{substr "BatMan" 3 3}}` → "Man"
|
||||||
|
|
||||||
|
### hasPrefix
|
||||||
|
|
||||||
|
HasPrefix tests whether a string begins with prefix.
|
||||||
|
|
||||||
|
* `{{ hasPrefix "Hugo" "Hu" }}` → true
|
||||||
|
|
||||||
### title
|
### title
|
||||||
Converts all characters in string to titlecase.
|
Converts all characters in string to titlecase.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue