{{ $image := .image }} {{ $dir := .dir }} {{ $altName := replace (replace $image ".jpg" "") ".png" "" }} {{ $humanizedName := humanize $altName | title }} {{ if hasPrefix $image "http" }} {{ else }} {{ end }}