diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/tpl/index.templ | 2 | ||||
-rw-r--r-- | pkg/tpl/index_templ.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tpl/index.templ b/pkg/tpl/index.templ index b405f3e..3655531 100644 --- a/pkg/tpl/index.templ +++ b/pkg/tpl/index.templ @@ -16,7 +16,7 @@ templ Index(quotes []model.Quote, page, count int) { @Quote(&q) } <nav> - <ul> + <ul hx-boost="true"> if page > 0 { <li><a href={ templ.URL(fmt.Sprintf("/?page=%d", page-1)) }>←</a></li> } diff --git a/pkg/tpl/index_templ.go b/pkg/tpl/index_templ.go index 4d249ab..eabd30d 100644 --- a/pkg/tpl/index_templ.go +++ b/pkg/tpl/index_templ.go @@ -53,7 +53,7 @@ func Index(quotes []model.Quote, page, count int) templ.Component { return templ_7745c5c3_Err } } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" <nav><ul>") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" <nav><ul hx-boost=\"true\">") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } |