{{- if .Site.Params.Portrait.Path }}
+ {{- $img := imageConfig (printf "static/%s" .Site.Params.Portrait.Path) }}
+ width="{{ $img.Width }}" height="{{ $img.Height }}" style="max-width:{{ .Site.Params.Portrait.Size }}" />
{{- end }}