feat: Ajout du lazy loading pour les images

This commit is contained in:
Simon 2021-04-21 10:55:24 +02:00
parent 1ddbd21c48
commit 8081395702
1 changed files with 1 additions and 1 deletions

View File

@ -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>