diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2026-02-15 09:00:55 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2026-02-15 09:00:55 -0500 |
| commit | 02ccc4b34760642de4771abde2137d53ba389882 (patch) | |
| tree | ef8c531ea02cfde410f302725bf9265ce3468129 | |
| parent | 5bb0d8749336256cc0a4ac58517f8257d81c5b35 (diff) | |
Don't insert pagefind search bar on paginated collections
| -rw-r--r-- | jakob/utils/pagination.scm | 19 |
1 files changed, 1 insertions, 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)) |