warp image elements with a div

This commit is contained in:
Spedon
2023-03-10 16:59:58 +08:00
parent a2547a2c12
commit f21437878b

View File

@@ -20,7 +20,9 @@
</script>
{{ range $images }}
{{ $index = sub $index 1}}
<img class="image" data-index="{{ $index }}" data-status="inactive" src="{{ .RelPermalink }}" height="{{ .Height }}" width="{{ .Width }}"/>
<div class="image inactive" data-index="{{ $index }}">
<img src="{{ .RelPermalink }}" height="{{ .Height }}" width="{{ .Width }}"/>
</div>
{{ end }}
</div>