From dbb5a3153a4ae732a6157b3acce20c9fbf8583fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Bail=C3=A3o?= Date: Sun, 23 Aug 2020 20:40:09 -0300 Subject: bug fix --- layouts/gallery/list.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/gallery/list.html b/layouts/gallery/list.html index 733d00b..0b6f21f 100755 --- a/layouts/gallery/list.html +++ b/layouts/gallery/list.html @@ -3,8 +3,9 @@ {{ .Content }} +{{ $keepAspectRatio := default false .Params.keepAspectRatio }} {{ if .Params.clickablePhotos }} -
+
{{ $images := .Resources.ByType "image" }} {{ range $index, $element := shuffle $images }} {{ $resized := $element.Resize $.Params.maxWidth }} @@ -16,7 +17,7 @@ {{ end }}
{{ else }} -
+
{{ $images := .Resources.ByType "image" }} {{ range shuffle $images }} {{ $resized := .Resize $.Params.maxWidth }} -- cgit v1.2.3