mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 19:53:15 -05:00
591 B
591 B
title | description | categories | menu | keywords | signature | relatedfuncs | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
slice | Creates a slice (array) of all passed arguments. |
|
|
|
|
One use case is the concatenation of elements in combination with the delimit
function:
{{< code file="slice.html" >}} {{ $sliceOfStrings := slice "foo" "bar" "buzz" }}
{{ delimit ($sliceOfStrings) ", " }}
{{< /code >}}