{{ $id := or (.Get `id`) (.Get 0) }} {{ $image := "" }} {{ with .Get `image` }} {{ $image = resources.GetMatch . }} {{ else }} {{ with resources.GetRemote (print "https://vimeo.com/api/oembed.json?width=1280&url=https%3A%2F%2Fvimeo.com%2F" $id) }} {{ with (unmarshal .Content).thumbnail_url }} {{ $image = resources.GetRemote . }} {{ end }} {{ end }} {{ end }}