{{ $id := delimit (slice "carousel" (partial "functions/uid.html" .)) "-" }} {{ $aspect := default "16-9" (.Get "aspectRatio") }} {{ $interval := default "2000" (.Get "interval") }} {{ $page := .Page.Resources }} {{ $imagesTemp := .Get "images" }} {{ $imagesTemp = strings.TrimPrefix "{" $imagesTemp }} {{ $imagesTemp = strings.TrimSuffix "}" $imagesTemp }} {{ $imagesTemp := strings.Split $imagesTemp "," }} {{ $images := slice}} {{ range $imagesTemp }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $images = $images | append (resources.GetRemote .) }} {{ else }} {{ $images = $images | append ($page.Match .) }} {{ end }} {{ end }}