summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-04-07 17:49:16 -0700
committercolin <colin@cicadas.surf>2023-04-07 17:49:33 -0700
commit9840cb919532a70435cf1f1d031485ed051a7dc0 (patch)
treeb3638c89d3ca5039623567e32894774b8d6814fc
parentd249468640877ae9bde5ada7f375a5df6d4e4da3 (diff)
add bottom page nav to theme package pages
-rw-r--r--fussy.lisp4
1 files changed, 3 insertions, 1 deletions
diff --git a/fussy.lisp b/fussy.lisp
index a6efb55..005b26c 100644
--- a/fussy.lisp
+++ b/fussy.lisp
@@ -580,7 +580,9 @@ h1 {
(dolist (theme (a:subseq* themes
(* page +themes-per-page+)
(* (1+ page) +themes-per-page+)))
- (theme-preview-card theme)))))))))
+ (theme-preview-card theme)))
+ (when (< +themes-per-page+ (length themes))
+ (page-nav page (floor (/ (length themes) +themes-per-page+))))))))))
(lzb:defendpoint* :get "/theme/:pkg a-package:/:theme a-theme:" () ()
"The page for a particular theme showing its previews for different prog langs"