[SOLVED] Media in separate folder and accessing with Page Resources

Sorry about earlier, I misread your question.

Now .GetMatch does not allow multiple exclusion (not that I am aware of), but where allows you to filter your range very thoroughly though

The following is not tested, but this is where you want to go I think. I stored resources in a var for readability:

{{ $resources := (.Resources.Match "**") }}
{{ range where  $resources ".Name" "in" .Params.gallery }}
{{/* do your code /*}}
{{ end }}

Go check the doc on where used with "in"

3 Likes