mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 09:24:43 -04:00
parent
42f8f85c65
commit
b6407a6e1e
@ -97,6 +97,18 @@ One use case is the concatenation of elements in combination with `delimit`:
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### shuffle
|
||||||
|
|
||||||
|
`shuffle` returns a random permutation of a given array or slice, e.g.
|
||||||
|
|
||||||
|
```html
|
||||||
|
{{ shuffle (seq 1 5) }}
|
||||||
|
<!-- returns [2 5 3 1 4] -->
|
||||||
|
|
||||||
|
{{ shuffle (slice "foo" "bar" "buzz") }}
|
||||||
|
<!-- returns [buzz foo bar] -->
|
||||||
|
```
|
||||||
|
|
||||||
### echoParam
|
### echoParam
|
||||||
Prints a parameter if it is set.
|
Prints a parameter if it is set.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user