henna/templates/covers.html
2026-01-11 19:55:28 -03:00

5 lines
364 B
HTML

{{range $i, $c := .Covers}}
<div class="cover" :class="{'active': active === total - {{len $.Covers}} + {{$i}}}"{{if and (eq $i 11) $.HasMore}} hx-get="{{$.Prefix}}/load/{{$.NextPage}}" hx-trigger="revealed once" hx-swap="beforeend" hx-target="#covers-container"{{end}}>
<img src="{{$c.Url}}" width="300" height="370" data-comic="{{$c.Comic}}">
</div>
{{end}}