mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
@@ -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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user