summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-04-06 20:04:49 -0700
committercolin <colin@cicadas.surf>2023-04-06 20:04:49 -0700
commit357d367ac1777cb643756a89fcbe2303df1422d3 (patch)
tree2332e309e69f62e865aaf78a1a7ba9469703e9c8
parentc485cbebcb4ea818c03840d7f562d30f5a8f463f (diff)
fix
-rw-r--r--fussy.lisp6
1 files changed, 4 insertions, 2 deletions
diff --git a/fussy.lisp b/fussy.lisp
index 68ac9ea..1666283 100644
--- a/fussy.lisp
+++ b/fussy.lisp
@@ -531,7 +531,9 @@ h1 {
(lzb:defendpoint* :get "/package/:pkg a-package:" ((page an-integer)) ()
"The page endpoint for a theme package"
(let ((themes
- (themes-in-package pkg)))
+ (themes-in-package pkg))
+ (page
+ (or page 0)))
(html:with-html-string
(:doctype)
(:html
@@ -550,7 +552,7 @@ h1 {
(:p (:a :href (theme-pkg-url pkg)
(theme-pkg-url pkg))))
(when (< +themes-per-page+ (length themes))
- (page-nav (or page 0) (1- (length themes))))
+ (page-nav page (1- (length themes))))
(:div :class "container"
(dolist (theme (a:subseq* themes
(* page +themes-per-page+)