{{- with or (.Resources.GetMatch "featured.*") (resources.Get "image/featured.jpg") }}
{{- with .Fill (printf "%dx%d TopLeft" (div .Width 1.45 | int) (div .Height 1.45 | int)) }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
{{- end }}
{{- end }}
2 Likes