Just convert n to int64 in guestbook.templ.
This commit is contained in:
parent
12c9d0069c
commit
5db465d72a
@ -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>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user