mason/dhandler: Remove pointless `/' concatenation from `join_paths' call.
[tgal] / mason / dhandler
index 887bd59..bf700a8 100755 (executable)
@@ -101,7 +101,7 @@ Failed to find &lsquo;<% $path |h %>&rsquo;.
 %   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"),
@@ -238,22 +238,22 @@ Failed to find &lsquo;<% $path |h %>&rsquo;.
 % if (defined $img) { $tn = scaled "thumb", $img; }
 % else { $tn = "$STATICURL/folder.svg"; }
 % if ($focus) {
-  <div class=thumb id=focusthumb>
-    <img class=thumb src="<% $tn |u %>">
-    <div class=caption><span class=name><% $caption %></span></div>
+  <figure class=thumb id=focusthumb>
+    <img class=thumb load=lazy src="<% $tn |u %>">
+    <figcaption><span class=name><% $caption %></span></figcaption>
 % } else {
-  <div class=thumb>
+  <figure class=thumb>
     <a class=thumb href="<% $target |u %>">
-      <img class=thumb src="<% $tn |u %>">
-      <div class=caption>
+      <img class=thumb load=lazy src="<% $tn |u %>">
+      <figcaption>
        <span class=name><% $caption %></span>
 % if (defined $comment) {
        <span class=comment><% $comment %></span>
 % }
-      </div>
+      </figcaption>
     </a>
 % }
-  </div>
+  </figure>
 %
 <%args>
        $target