Files
2026-10-17 08:45:08 +02:00

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 -}}