From: Mark Wooding Date: Sun, 11 Jun 2023 17:47:45 +0000 (+0100) Subject: mason/dhandler (.image): Compare references rather than filenames. X-Git-Url: https://git.distorted.org.uk/~mdw/tgal/commitdiff_plain/62ee1c09a43f22ade7b5f75e3cae56c38aa7b84f mason/dhandler (.image): Compare references rather than filenames. ... for determining whether this is the focus image. --- diff --git a/mason/dhandler b/mason/dhandler index 91a513b..d36722b 100755 --- a/mason/dhandler +++ b/mason/dhandler @@ -207,7 +207,7 @@ Failed to find ‘<% $path |h %>’. % 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 &>\ % } % }