{{- $imageFile := print "public/images/thumbnails/" (partial "article-image.html" .) ".png" -}} {{- if fileExists $imageFile -}} {{- $image := imageConfig $imageFile -}} {{ .Title }} {{- else -}} {{- $image := imageConfig "public/images/thumbnails/placeholder.png" -}} {{ .Title }} {{- end -}}