This commit is contained in:
icefox 2026-01-11 19:55:28 -03:00
parent 89a99c0aa7
commit cbaa466191
No known key found for this signature in database
3 changed files with 48 additions and 2 deletions

5
templates/covers.html Normal file
View file

@ -0,0 +1,5 @@
{{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}}