From 3904461926cf8aee47248dfedb430f3a092038a5 Mon Sep 17 00:00:00 2001 From: Mircea-Pavel ANTON Date: Wed, 18 Jan 2023 09:35:19 +0000 Subject: [PATCH] Provide images as regex filter --- layouts/shortcodes/carousel.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html index 769a2e5f..928ace96 100644 --- a/layouts/shortcodes/carousel.html +++ b/layouts/shortcodes/carousel.html @@ -1,12 +1,13 @@ {{ $time := now.UnixNano }} {{ $id := delimit (slice "gallery" $time) "-" }} -{{ $aspect := default "ratio-16-9" (.Get "aspectRatio") }} +{{ $aspect := default "16-9" (.Get "aspectRatio") }} +{{ $images := .Page.Resources.Match (.Get "images") }}