{{- $src := .Src | default "" -}}
{{- $size := .Size | default "cover" -}}

{{- if $src -}}
style="background-image:url('{{ $src | absURL }}');background-size:{{ $size }};background-position:center center;background-repeat:no-repeat;"
{{- end -}}
