Test om afbeeldingen te mogen maximaliseren
This commit is contained in:
parent
8b58336bfb
commit
9ea34e1fa1
|
@ -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>
|
||||||
|
|
Reference in a new issue