mason/dhandler (.image): Compare references rather than filenames.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 11 Jun 2023 17:47:45 +0000 (18:47 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 12 Jun 2023 10:48:39 +0000 (11:48 +0100)
... for determining whether this is the focus image.

mason/dhandler

index 91a513b..d36722b 100755 (executable)
@@ -207,7 +207,7 @@ Failed to find &lsquo;<% $path |h %>&rsquo;.
 %   for my $f (@$ff) {
   <& .thumbnail, target => $f->name, img => $img{$f}, size => $size,
                 caption => $m->interp->apply_escapes($f->name, "h"),
-                focus => $f->name eq "$base$ext" &>\
+                focus => $f eq $this &>\
 %   }
 </div>
 % }