{{- $videoid := .Get 0 -}} {{- $img := .Get 1 -}} {{- $params := .Get 2 -}} {{ $bkImg := "" }} {{ if .IsNamedParams }} {{ $videoid = .Get "videoid" }} {{ $img = .Get "img" }} {{ $bkImg = "" }} {{ $params = .Get "params" }} {{ end }} {{ with $img }} {{ $bkImg := absURL (printf "images/%s" .) }} {{ end }}