% for my $d (@$dd) {
% my ($ddd, $fff, $iii) = listdir $real . "/" . $d->name;
% my $tn;
-% if ($iii) { $tn = join_paths $path, $d->name . "/" . $iii->name; }
+% if ($iii) { $tn = join_paths $path, $d->name, $iii->name; }
% else { $tn = undef; }
<& .thumbnail, target => $d->name . "/", img => $tn,
caption => $m->interp->apply_escapes($d->name, "h"),
% else { $tn = "$STATICURL/folder.svg"; }
% if ($focus) {
<figure class=thumb id=focusthumb>
- <img class=thumb src="<% $tn |u %>">
+ <img class=thumb load=lazy src="<% $tn |u %>">
<figcaption><span class=name><% $caption %></span></figcaption>
% } else {
<figure class=thumb>
<a class=thumb href="<% $target |u %>">
- <img class=thumb src="<% $tn |u %>">
+ <img class=thumb load=lazy src="<% $tn |u %>">
<figcaption>
<span class=name><% $caption %></span>
% if (defined $comment) {