aboutsummaryrefslogtreecommitdiff
path: root/haunt/jakob/utils/pagination.scm
diff options
context:
space:
mode:
Diffstat (limited to 'haunt/jakob/utils/pagination.scm')
-rw-r--r--haunt/jakob/utils/pagination.scm17
1 files changed, 8 insertions, 9 deletions
diff --git a/haunt/jakob/utils/pagination.scm b/haunt/jakob/utils/pagination.scm
index 2cda3c7..bd44665 100644
--- a/haunt/jakob/utils/pagination.scm
+++ b/haunt/jakob/utils/pagination.scm
@@ -62,15 +62,14 @@ lists of the form (index, items)."
(define (render-listing content title previous-page next-page)
"Return an SHTML document showing CONTENT, with the header TITLE and links to
PREVIOUS-PAGE and NEXT-PAGE."
- `((h1 ,title)
- ,@content
- (nav
- (@ (id "pagination"))
- ,@(maybe-list
- (when previous-page
- (hyperlink previous-page "← Previous Page"))
- (when next-page
- (hyperlink next-page "Next Page →"))))))
+ #<((h1 ,title)
+ ,@content
+ (nav
+ (@ (id "pagination"))
+ ,(when previous-page
+ (hyperlink previous-page "← Previous Page"))
+ ,(when next-page
+ (hyperlink next-page "Next Page →")))))
(define* (items->pages render-item items base-title base-file-name
#:key (items-per-page %items-per-page))

© 2015 - 2026 Jakob L. Kreuze