aboutsummaryrefslogtreecommitdiff
path: root/pkg/tpl/list.templ
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-08 18:48:55 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-08 18:48:55 +0300
commita20e2ace25c363658d59346358339011fe8ef934 (patch)
tree0783fc116b2fdcc6928eb82eea63b2073fef2651 /pkg/tpl/list.templ
parente849e705c30cceec3cf7336a21bed96c8a911e90 (diff)
Фикс стилейHEADmaster
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>