feat: Ajout du lazy loading pour les images
This commit is contained in:
parent
1ddbd21c48
commit
8081395702
|
@ -9,7 +9,7 @@
|
||||||
<a href="{{ .RelPermalink }}">
|
<a href="{{ .RelPermalink }}">
|
||||||
{{ if $image }}
|
{{ if $image }}
|
||||||
{{ $resized := $image.Fill $pictureSize}}
|
{{ $resized := $image.Fill $pictureSize}}
|
||||||
<img src="{{ $resized.RelPermalink }}" alt="{{ $titleWithoutHTML }}" />
|
<img src="{{ $resized.RelPermalink }}" alt="{{ $titleWithoutHTML }}" loading="lazy" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue