From 46a465ce746b3957f5cf83cfd7465c18b8ba6455 Mon Sep 17 00:00:00 2001 From: Kathryn Andersen Date: Sun, 29 Jun 2014 17:21:18 +0100 Subject: album: allow thumbnails to not be 96x96 [taken from a diff on the discussion page -smcv] --- IkiWiki/Plugin/album.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') || -- cgit v1.2.3