add height and width to image elements

This commit is contained in:
Spedon
2023-03-10 16:03:36 +08:00
parent 0d7e5fe39b
commit 7116a9f7ad

View File

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