aboutsummaryrefslogtreecommitdiff
path: root/pkg/tpl/list.templ
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tpl/list.templ')
-rw-r--r--pkg/tpl/list.templ6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/tpl/list.templ b/pkg/tpl/list.templ
index 014a2db..daf7ad8 100644
--- a/pkg/tpl/list.templ
+++ b/pkg/tpl/list.templ
@@ -22,7 +22,7 @@ templ List(quotes []model.Quote, page, count int) {
<nav>
<ul hx-boost="true" hx-indicator=".loader">
if page > 0 {
- <li><a href={ templ.URL(fmt.Sprintf("/?page=%d", page-1)) }>&larr;</a></li>
+ <li><a href={ templ.URL(fmt.Sprintf("?page=%d", page-1)) }>&larr;</a></li>
}
for _, p := range generatePagination(page, count/20) {
if p == "..." {
@@ -30,12 +30,12 @@ templ List(quotes []model.Quote, page, count int) {
} else if p == strconv.Itoa(page) {
<li>[{ p }]</li>
} else {
- <li><a href={ templ.URL(fmt.Sprintf("/?page=%s", p)) }>{ p }</a></li>
+ <li><a href={ templ.URL(fmt.Sprintf("?page=%s", p)) }>{ p }</a></li>
}
}
if page < count/20 {
- <li><a href={ templ.URL(fmt.Sprintf("/?page=%d", page+1)) }>&rarr;</a></li>
+ <li><a href={ templ.URL(fmt.Sprintf("?page=%d", page+1)) }>&rarr;</a></li>
}
</ul>
</nav>