{{ $image := partial "func/GetNamedImage.html" (dict "context" . "name" "featured_image") }} {{ $image_link := ""}} {{ with $image }} {{ $image_link = $image.Permalink }} {{ end }}