From 62ee1c09a43f22ade7b5f75e3cae56c38aa7b84f Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 11 Jun 2023 18:47:45 +0100 Subject: [PATCH] mason/dhandler (.image): Compare references rather than filenames. ... for determining whether this is the focus image. --- mason/dhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &>\ % } % } -- 2.11.0