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