Skip to content

Commit

Permalink
Fix first image being lazy-loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 5, 2025
1 parent 34dc4e3 commit 820a245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/handlebars/feed.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<a class="images is-preview is-{{size-class (size images)}}" href="{{route this}}">
{{#with images.0}}
<div class="{{#if is.video}}is-video{{/if}} image">
<img alt="{{title}}, {{date meta.dateTime format='d.m.Y H:i'}}" {{#unless first}}loading="lazy"{{/unless}} {{&dataset meta}} src="/image/{{slug}}/thumb-{{name}}.webp" width="1024">
<img alt="{{title}}, {{date meta.dateTime format='d.m.Y H:i'}}" {{#unless ../@first}}loading="lazy"{{/unless}} {{&dataset meta}} src="/image/{{slug}}/thumb-{{name}}.webp" width="1024">
</div>
{{/with}}
<div class="more">
Expand Down

0 comments on commit 820a245

Please sign in to comment.