mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
be2e08c4ad
commit
be4376a022
1 changed files with 10 additions and 0 deletions
|
@ -382,6 +382,16 @@ Example: Given `style = "color: red;"` defined in the front matter of your `.md`
|
||||||
Note: "ZgotmplZ" is a special value that indicates that unsafe content reached a
|
Note: "ZgotmplZ" is a special value that indicates that unsafe content reached a
|
||||||
CSS or URL context.
|
CSS or URL context.
|
||||||
|
|
||||||
|
### slicestr
|
||||||
|
|
||||||
|
Slicing in Slicestr is done by specifying a half-open range with two indices, start and end. 1 and 4 creates a slice including elements 1 through 3.
|
||||||
|
The end index can be omitted, it defaults to the string's length.
|
||||||
|
|
||||||
|
e.g.
|
||||||
|
|
||||||
|
* `{{slicestr "BatMan" 3}}` → "Man"
|
||||||
|
* `{{slicestr "BatMan" 0 3}}` → "Bat"
|
||||||
|
|
||||||
### title
|
### title
|
||||||
Convert all characters in string to titlecase.
|
Convert all characters in string to titlecase.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue