1
0

Just convert n to int64 in guestbook.templ.

This commit is contained in:
Alexander Andreev 2024-06-19 05:07:20 +04:00
parent 12c9d0069c
commit 5db465d72a
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -72,8 +72,7 @@ templ Guestbook(captchaID, owner string, entries []*justguestbook.Entry, pageCou
</section>
if pageCount > 1 {
<section id="pagination">
{{ var n int64 = 1 }}
for ; n <= pageCount; n++ {
for n := int64(1); n <= pageCount; n++ {
{{ strN := strconv.FormatInt(n, 10) }}
<a href={ templ.URL("/guestbook?p=" + strN) }>{ strN }</a>
}