diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html index 55e69358..55cf6878 100644 --- a/layouts/shortcodes/carousel.html +++ b/layouts/shortcodes/carousel.html @@ -39,11 +39,13 @@
{{ $num := 0 }} {{ range $images }} @@ -89,18 +91,19 @@ class="block absolute top-0 object-cover w-full h-full not-prose nozoom" alt="carousel image {{ add $index 1 }}">
- {{ if $caption }} + {{ if or $caption $captionsParam }}
{{ $caption | markdownify }}
+ class="mt-1 {{ if not $caption }}invisible{{ end }}" + {{ if not $caption }}aria-hidden="true"{{ end }} + >{{ if $caption }}{{ $caption | markdownify }}{{ else }} {{ end }} {{ end }}
{{ end }}