{{- $src := .src -}} {{- $hint := default ( index $src.Params "hint" ) "" }} {{- $format := cond ( and ( isset . "raw" ) .raw ) "" "webp" -}} {{- $isResizable := not ( in ( slice "svg" "gif" ) $src.MediaType.SubType ) -}} {{ if $isResizable -}} {{- if gt $src.Width 1200 -}} {{- end -}} {{- if gt $src.Width 800 -}} {{- end -}} {{- end }}