From 61f1e46f28c10e4a906afc284fef97cb85b20d02 Mon Sep 17 00:00:00 2001 From: Mircea-Pavel ANTON Date: Wed, 18 Jan 2023 09:18:17 +0000 Subject: [PATCH] Add ability to customize the aspect ratio --- layouts/shortcodes/carousel.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html index 9ce77a46..769a2e5f 100644 --- a/layouts/shortcodes/carousel.html +++ b/layouts/shortcodes/carousel.html @@ -1,5 +1,6 @@ {{ $time := now.UnixNano }} {{ $id := delimit (slice "gallery" $time) "-" }} +{{ $aspect := default "ratio-16-9" (.Get "aspectRatio") }}