feat: Ajout du lazy loading pour les images

This commit is contained in:
2021-04-13 23:02:06 +02:00
parent 218fe41369
commit 49fb2b52b3
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
{{ if $src }}
{{ $image := $src.Fill "432x300 Center" }}
{{ $alt := index .Params "image_title" | default (index .Params "title") }}
<img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" />
<img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" loading="lazy" />
{{ end }}
</div>
<div class="card-body cell -7of12">