feat: Ajout du lazy loading pour les images
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user