Skip to content
Snippets Groups Projects
Commit 0976cf76 authored by alexisben's avatar alexisben
Browse files

fix

parent 1467d0d7
No related branches found
No related tags found
No related merge requests found
{{- $has_text := false -}}
{{- range .images }}
{{- if .text }}
{{- $has_text = true -}}
{{ end -}}
{{ end -}}
<div class="gallery{{- if $has_text }} gallery--with-text {{ end -}}">
<div class="gallery">
{{ range .images }}
{{ if .id }}
{{- $image := partial "GetMedia" .id -}}
......@@ -24,6 +18,7 @@
{{ else if or .text .credit }}
{{ $lightbox_text = or .text .credit }}
{{ end }}
<a class="glightbox"
role="button"
data-glightbox="type: image; {{ with $lightbox_text }}description: {{ . | safeHTML }}{{ 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