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

fix #105

parent ce8f1a90
No related branches found
No related tags found
No related merge requests found
......@@ -39,9 +39,11 @@
{{ if .image }}
<figure class="{{- $image_class -}}">
<a class="glightbox"
role="button"
data-glightbox="type: image;{{ if .credit }}description: {{ partial "PrepareHTML" .credit }}{{ end }}"
href="{{- partial "GetLightboxUrl" .image -}}"
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}"
>
{{ partial "commons/image.html"
(dict
......
......@@ -16,9 +16,11 @@
<figure{{ if $is_carousel }} class="splide__slide"{{ end }}>
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }}
<a class="glightbox"
role="button"
data-glightbox="type: image;{{ if .credit }}description: {{ partial "PrepareHTML" .credit }}{{ end }}"
href="{{ partial "GetLightboxUrl" (dict "id" .id) }}"
title="{{- i18n "commons.lightbox.link.title" -}}">
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
{{ end }}
{{ partial "commons/image.html"
(dict
......
......@@ -6,9 +6,11 @@
<figure>
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }}
<a class="glightbox"
role="button"
data-glightbox="type: image;{{ if .credit }}description: {{ partial "PrepareHTML" .credit }}{{ end }}"
href="{{ partial "GetLightboxUrl" (dict "id" .id) }}"
title="{{- i18n "commons.lightbox.link.title" -}}">
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
{{ end }}
{{ partial "commons/image.html"
(dict
......
......@@ -23,9 +23,11 @@
<figure class="{{ $image_class }}">
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }}
<a class="glightbox"
role="button"
data-glightbox="type: image;{{ if .credit }}description: {{ partial "PrepareHTML" .credit }}{{ end }}"
href="{{- partial "GetLightboxUrl" . -}}"
title="{{- i18n "commons.lightbox.link.title" -}}">
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
{{ end }}
{{ partial "commons/image.html"
(dict
......
......@@ -24,9 +24,11 @@
<figure>
{{ if not site.Params.image_sizes.design_system.lightbox.disabled }}
<a class="glightbox"
role="button"
data-glightbox="type: image;{{ if .image.credit }}description: {{ partial "PrepareHTML" .image.credit }}{{ end }}"
href="{{ partial "GetLightboxUrl" .image }}"
title="{{- i18n "commons.lightbox.link.title" -}}">
title="{{- i18n "commons.lightbox.link.title" -}}"
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
{{ end }}
{{ partial "commons/image.html"
(dict
......
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