{{ $embedded := $.Page.Resources.ByType "image" }}
{{ $img := $.Page.Param "image" | first 1 $embedded }}
{{ with $img }}
{{- $thumbHref := .Fill $thumbCrop }}
<img src="{{$thumbHref.RelPermalink}}" />
{{ end }}
this throws:
execute of template failed: template: _default/list.html:13:46: executing “main” at : wrong number of args for first: want 2 got 3
Strangely, I cannot see this third argument at all.
However, I’m unsure if first would give me what I want at all, because it just returns another array. I’d probably would have to range through that, but isn’t there some way to get $embedded[0] or something along the lines?