diff options
author | Kathryn Andersen <perlkat@katspace.org> | 2014-06-29 17:21:18 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-05-14 19:07:21 +0100 |
commit | 288896f834182803f56459d4206a11d550fa9eed (patch) | |
tree | 467001b5c021e84ee97b99fab7a488fe7bc31429 /IkiWiki/Plugin | |
parent | 376389b0da4065094c040f63f4191dbbfb2c7d00 (diff) | |
download | ikiwiki-288896f834182803f56459d4206a11d550fa9eed.tar ikiwiki-288896f834182803f56459d4206a11d550fa9eed.tar.gz |
album: allow thumbnails to not be 96x96
[taken from a diff on the discussion page -smcv]
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/album.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/album.pm b/IkiWiki/Plugin/album.pm index bade7c43b..f42078b8b 100644 --- a/IkiWiki/Plugin/album.pm +++ b/IkiWiki/Plugin/album.pm @@ -499,6 +499,7 @@ sub pagetemplate (@) { my $viewer = $params{page}; my $album = $pagestate{$viewer}{album}{album}; my $image = $pagestate{$viewer}{album}{image}; + my $thumbnailsize = $pagestate{$album}{album}{thumbnailsize}; return unless defined $album; return unless defined $image; @@ -510,7 +511,7 @@ sub pagetemplate (@) { if ($template->query(name => 'thumbnail')) { $template->param(thumbnail => - thumbnail($viewer, $params{destpage})); + thumbnail($viewer, $params{destpage}, $thumbnailsize)); } if (IkiWiki::isinlinableimage($image) && ($template->query(name => 'imagewidth') || |