support providing a metadata file

This commit is contained in:
2024-02-05 16:57:47 +01:00
parent e322408202
commit 30f01d96ec
5 changed files with 65 additions and 12 deletions

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 -}}