{{ if .Params.Images }} {{ $img := index .Params.Images 0 }} {{ with ( imageConfig ( printf "/static%s" $img ) ) }} {{ $ratio := (div .Height (add 0.0 .Width)) }}
{{ end }} {{ else }}
{{ end }}