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

code optimization

parent 46d6f35e
No related branches found
No related tags found
No related merge requests found
......@@ -62,10 +62,10 @@
aria-label="{{- i18n "commons.lightbox.link.title" -}}">
</a>
{{ end }}
{{ if partial "GetTextFromHTML" .image.credit }}
{{ with partial "GetTextFromHTML" .image.credit }}
<figcaption tabindex="0">
<div class="credit-content">
{{ partial "PrepareHTML" .image.credit }}
{{ partial "PrepareHTML" . }}
</div>
</figcaption>
{{ 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