template installiert
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{{- $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 -}}
|
||||
Reference in New Issue
Block a user