13 lines
460 B
HTML
13 lines
460 B
HTML
{{- $image := or (.Page.Resources.GetMatch .Destination) (resources.GetMatch .Destination) -}}
|
|
{{- if $image -}}
|
|
{{- partial "responsive-image.html" (dict
|
|
"image" $image
|
|
"alt" .Text
|
|
"title" .Title
|
|
"widths" (slice 711 1422 2133)
|
|
"sizes" "(min-width: 711px) 711px, 100vw"
|
|
) -}}
|
|
{{- else -}}
|
|
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}"{{ with .Title }} title="{{ . }}"{{ end }} loading="lazy" decoding="async">
|
|
{{- end -}}
|