X-Git-Url: https://git.distorted.org.uk/~mdw/tgal/blobdiff_plain/3d7d20f8981ca2cddf253154f6f2dde4f2b55717..f4b90914218210244a0e85b45eaa0890bc897717:/mason/dhandler
diff --git a/mason/dhandler b/mason/dhandler
index 38a460d..979419d 100755
--- a/mason/dhandler
+++ b/mason/dhandler
@@ -83,6 +83,7 @@ Failed to find ‘<% $path |h %>’.
}
(my $nosl = $path) =~ s!/$!!;
+ my $size = "medthumb";
my %tn;
for my $f (@$ff)
{ $tn{$f} = TrivGal::Image->new($path . $f->name); }
@@ -108,28 +109,24 @@ Failed to find ‘<% $path |h %>’.
%
% if (@$dd) {
Subfolders
-% for my $size (qw{medthumb}) {
-% for my $d (@$dd) {
+% for my $d (@$dd) {
<& .thumbnail, target => $d->name, comment => $d->comment,
img => $tn{$d}, size => $size,
caption => $m->interp->apply_escapes($d->name, "h") &>\
-% }
-
% }
+
% }
%
% if (@$ff) {
Images
-% for my $size (qw{medthumb}) {
-% for my $f (@$ff) {
+% for my $f (@$ff) {
<& .thumbnail, target => $f->name, comment => $f->comment,
- img => $tn{$f}, size => "bigthumb",
+ img => $tn{$f}, size => $size,
caption => $m->interp->apply_escapes($f->name, "h") &>\
-% }
-
% }
+
% }
%