about summary refs log tree commit diff stats
path: root/internal/components/data.go
diff options
context:
space:
mode:
authorAlan Pearce2025-01-04 20:28:41 +0100
committerAlan Pearce2025-01-04 20:28:41 +0100
commit750d4948e81e1ac6b6a63386b96f8c60828891e5 (patch)
tree8354b40cfb28bc154c89b47e37c74fca7f479fb6 /internal/components/data.go
parent3d9e6998177f7fc8e971df4913c3a880ff911c99 (diff)
downloadsearchix-750d4948e81e1ac6b6a63386b96f8c60828891e5.tar.lz
searchix-750d4948e81e1ac6b6a63386b96f8c60828891e5.tar.zst
searchix-750d4948e81e1ac6b6a63386b96f8c60828891e5.zip
refactor: extract pagination into module
Diffstat (limited to 'internal/components/data.go')
-rw-r--r--internal/components/data.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/components/data.go b/internal/components/data.go
index 3625017..aecd44c 100644
--- a/internal/components/data.go
+++ b/internal/components/data.go
@@ -21,9 +21,8 @@ type TemplateData struct {
 
 type ResultData struct {
 	TemplateData
-	Query          string
-	ResultsPerPage int
-	Results        *search.Result
-	Prev           string
-	Next           string
+	Query   string
+	Results *search.Result
+	Prev    string
+	Next    string
 }