From 31c90fd53f9d884ee9b9a10c06f6ab11ff26941a Mon Sep 17 00:00:00 2001 From: kdevo Date: Tue, 4 May 2021 22:07:04 +0200 Subject: :wrench: Allow page-local gallery `resizeOptions` --- layouts/partials/sections/gallery/img.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }} -- cgit v1.2.3