{{/* If the file exists and the filename isn't blank, */}} {{ if (and (fileExists (print .Destination)) (not (eq .Destination ""))) }} {{/* Grab the image */}} {{ $image := resources.Get (print (replace .Destination "assets/" "")) }}