6
0
Fork 0

Test om afbeeldingen te mogen maximaliseren

This commit is contained in:
Michael Boelen 2023-06-19 10:48:02 +02:00
parent 8b58336bfb
commit 9ea34e1fa1

View file

@ -23,7 +23,7 @@
{{- end }} {{- end }}
{{ $img := imageConfig (add "/static" (.image | safeURL)) }} {{ $img := imageConfig (add "/static" (.image | safeURL)) }}
<img src="{{ .image | safeURL }}" alt="{{ .alt }}"{{ if not .above_the_fold }} loading="lazy"{{ end }} decoding="async" width="{{ $img.Width }}" height="{{ $img.Height }}"> <img class="max-width" src="{{ .image | safeURL }}" alt="{{ .alt }}"{{ if not .above_the_fold }} loading="lazy"{{ end }} decoding="async" width="{{ $img.Width }}" height="{{ $img.Height }}">
</picture> </picture>
{{ if .figcaption }} {{ if .figcaption }}
<figcaption> <figcaption>