Skip to content
Snippets Groups Projects
Commit 33343e16 authored by Olivia206's avatar Olivia206
Browse files

added text to carousel gallery

parent 2a36bb4e
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,15 @@
"sizes" site.Params.image_sizes.blocks.gallery.carousel
)}}
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }}
{{ $lightbox_text := false }}
{{ if and .text .credit }}
{{ $lightbox_text = delimit (slice .text .credit) " / " }}
{{ else }}
{{ $lightbox_text = or .text .credit }}
{{ end }}
<a class="glightbox"
role="button"
data-glightbox="type: image;{{ if .credit }}description: {{ partial "PrepareHTML" .credit }}{{ end }}"
data-glightbox="type: image;{{ if $lightbox_text }}description: {{ partial "PrepareHTML" $lightbox_text }}{{ end }}"
href="{{ partial "GetLightboxUrl" (dict "id" .id) }}"
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
......
......@@ -11,8 +11,8 @@
{{ if not $subtitle }}
{{ if and (eq site.Params.summary.position "hero") $summary }}
{{ $subtitle = $summary }}
{{ $subtitle_is_summary = true }}
{{ $subtitle = $summary }}
{{ $subtitle_is_summary = true }}
{{ end }}
{{ end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment