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