summaryrefslogtreecommitdiff
path: root/jakob/utils/pagination.scm
diff options
context:
space:
mode:
Diffstat (limited to 'jakob/utils/pagination.scm')
-rw-r--r--jakob/utils/pagination.scm19
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))