From 27ffd0a40e9ee8fddfd45a7b1372ce857fe440c1 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 16 Jun 2024 14:02:59 -0400 Subject: Use the new `artifact' API instead of `make-page' --- haunt/jakob/utils/pagination.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'haunt/jakob/utils') diff --git a/haunt/jakob/utils/pagination.scm b/haunt/jakob/utils/pagination.scm index f869897..f75f02f 100644 --- a/haunt/jakob/utils/pagination.scm +++ b/haunt/jakob/utils/pagination.scm @@ -21,8 +21,8 @@ ;;; Code: (define-module (jakob utils pagination) + #:use-module (haunt artifact) #:use-module (haunt html) - #:use-module (haunt page) #:use-module (ice-9 match) #:use-module (srfi srfi-1) #:use-module (jakob theme) @@ -104,11 +104,11 @@ the item from ITEMS passed as a parameter." (index->file-name (1+ index)) #f)) (enable-search (and enable-search (= index 1)))) - (make-page (index->file-name index) - (theme #:title title - #:content - (render-listing (map render-item subset) title - previous-page next-page - #:enable-search enable-search)) - sxml->html)))) + (serialized-artifact (index->file-name index) + (theme #:title title + #:content + (render-listing (map render-item subset) title + previous-page next-page + #:enable-search enable-search)) + sxml->html)))) (paginate items))) -- cgit v1.3