Skip to content

Commit

Permalink
Added lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
spolischook committed Jan 6, 2024
1 parent 1359acc commit 2da0fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/exhibitions/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<picture class="">
<source type="image/avif" srcset="{{ $image.RelPermalink | replaceRE "(?i)(jpg|jpeg|png|gif|bmp|tiff)" "avif" }}">
<source type="image/webp" srcset="{{ $image.RelPermalink | replaceRE "(?i)(jpg|jpeg|png|gif|bmp|tiff)" "webp" }}">
<img class="object-cover w-full h-full" alt="Afisha {{ .Title }}" src="{{$image.RelPermalink}}">
<img class="object-cover w-full h-full" alt="Afisha {{ .Title }}" src="{{$image.RelPermalink}}" loading="lazy">
</picture>
</div>
{{ else }}
Expand Down

0 comments on commit 2da0fd0

Please sign in to comment.