From 02ccc4b34760642de4771abde2137d53ba389882 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Sun, 15 Feb 2026 09:00:55 -0500 Subject: Don't insert pagefind search bar on paginated collections --- jakob/utils/pagination.scm | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/jakob/utils/pagination.scm b/jakob/utils/pagination.scm index 18ecfc3..c87a444 100644 --- a/jakob/utils/pagination.scm +++ b/jakob/utils/pagination.scm @@ -77,24 +77,7 @@ PREVIOUS-PAGE and NEXT-PAGE." ,(when next-page `(a (@ (href ,next-page) (rel "next")) - "Next Page →"))) - ,@(if enable-search - `((link (@ (rel "stylesheet") - (href "/_pagefind/pagefind-ui.css"))) - (script (@ (src "/_pagefind/pagefind-ui.js"))) - (script "window.addEventListener('DOMContentLoaded', function (event) { - return new PagefindUI({ - element: '#search', - processResult: function (result) { - if (result.fixed) { - return result; - } - let path = result.raw_url; - let basepath = path.substring(0, path.lastIndexOf('/')); - result.meta.image = basepath + '/' + result.meta.image; - result.fixed = true; - return result;}});})")) - '()))) + "Next Page →"))))) (define* (items->pages render-item items base-title base-file-name #:key enable-search (items-per-page %items-per-page)) -- cgit v1.3