I would like to use the where function as a case-insensitive match and find my string anywhere in the slice. My example code is below.
{{ c := where .Site.Pages “.Params.tags” “in” $tag }}
So, I would like to find all pages with string $tag included the .Params.tags.
But I can’t figure out how to make the comparison case-insensitive. Also, the where function checks for the .Params.tags included in string $tag. But I would like to check if $tag is included in .Params.tags.
I could use a whole bunch of code to do this but I wonder if there is a simple solution.