mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 19:12:09 -05:00
5fd1e74903
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
916 B
916 B
title | description | categories | keywords | action | aliases | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
collections.In | Reports whether the given value is a member of the given set. |
|
|
The SET
can be an array, slice, or string.
{{ $s := slice "a" "b" "c" }}
{{ in $s "b" }} → true
{{ $s := slice 1 2 3 }}
{{ in $s 2 }} → true
{{ $s := slice 1.11 2.22 3.33 }}
{{ in $s 2.22 }} → true
{{ $s := "abc" }}
{{ in $s "b" }} → true