+1
-1
index.html.tmpl
+1
-1
index.html.tmpl
···
24
24
</section>
25
25
26
26
{{ range .Postcards }}
27
-
<figure>
27
+
<figure id="{{.Name}}">
28
28
<input type="checkbox" id="postcard-{{.Name}}">
29
29
<label for="postcard-{{.Name}}">
30
30
<div class="postcard flip-{{ .Meta.Flip }} {{ if gt .Meta.Physical.FrontDimensions.PxHeight .Meta.Physical.FrontDimensions.PxWidth }}portrait{{ else }}landscape{{ end }}" style="--postcard: url('{{ .Name }}.postcard.webp'); --aspect-ratio: {{ .Meta.Physical.FrontDimensions.PxWidth }} / {{ .Meta.Physical.FrontDimensions.PxHeight }}">