Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kdevo/osprey-delight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdevo <kdevo@users.noreply.github.com>2021-05-04 23:07:04 +0300
committerkdevo <kdevo@users.noreply.github.com>2021-05-04 23:11:58 +0300
commit31c90fd53f9d884ee9b9a10c06f6ab11ff26941a (patch)
treeb0a6692d7a47f2cacb927d23ccc89fef468a2512
parenta983467b5a72e3d103ea76165f7cd7a6b0edef28 (diff)
:wrench: Allow page-local gallery `resizeOptions`
-rw-r--r--layouts/partials/sections/gallery/img.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/sections/gallery/img.html b/layouts/partials/sections/gallery/img.html
index 2adc500..46c8e8e 100644
--- a/layouts/partials/sections/gallery/img.html
+++ b/layouts/partials/sections/gallery/img.html
@@ -2,7 +2,7 @@
{{ $imgSize := default "500x" .Site.Params.Image.Gallery.resize }}
{{ $lqipSize := default "6x" .Site.Params.Image.Gallery.resizeLQIP }}
{{ $useLQIP := default true .Site.Params.Image.Gallery.useLQIP }}
-{{ $resizeOptions := default "MitchellNetravali q85" .Site.Params.Image.Gallery.resizeOptions }}
+{{ $resizeOptions := default "MitchellNetravali q85" (default .Page.Params.resizeOptions .Site.Params.Image.Gallery.resizeOptions) }}
{{ with .Params.image -}}
{{ with (resources.Get .) -}}
{{ $image := .Resize (printf "%s %s" $imgSize $resizeOptions) }}