support providing a metadata file

This commit is contained in:
mxmehl committed 2024-02-05 17:37:38 +01:00
1 parent e322408202
commit 30f01d96ec
5 files changed
+65 -12

No files matched your search

+6 -1
View File
@@ -4,7 +4,12 @@
{{- range $i, $img := $imgs }}
<div class="snap-lightbox-inner">
<div class="numbertext">{{ add $i 1 }} / {{ len $imgs }}</div>
<img src="{{ $img }}" style="width:100%">
<img
src="{{ relURL $img.src }}"
{{ range $attr, $value := $img.html -}}
{{ safeHTMLAttr $attr }}={{ $value }}
{{ end -}}
/>
</div>
{{- end -}}