support providing a metadata file

This commit is contained in:
2024-02-05 17:37:38 +01:00
parent e322408202
commit 30f01d96ec
5 changed files with 65 additions and 12 deletions
+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 -}}