aboutsummaryrefslogtreecommitdiff
path: root/haunt/pages
diff options
context:
space:
mode:
authorJakob L. Kreuze2023-08-05 19:34:35 -0400
committerJakob L. Kreuze2023-08-05 19:59:56 -0400
commit9cd1dc2a045de2375c5afdc24996b5e8f1268b83 (patch)
tree66d368692b0d0d7712f19daa0d74b9f5ef16812a /haunt/pages
parente2911e800d659ded983fcc71f5e1b369cff88667 (diff)
Integrate pagefind for self-hosted search
Largely inspired by this post: <https://raymii.org/s/blog/Site_update_self_hosted_search_via_pagefind.html>
Diffstat (limited to 'haunt/pages')
-rw-r--r--haunt/pages/about-complete.sxml12
1 files changed, 7 insertions, 5 deletions
diff --git a/haunt/pages/about-complete.sxml b/haunt/pages/about-complete.sxml
index fa0fb27..0440217 100644
--- a/haunt/pages/about-complete.sxml
+++ b/haunt/pages/about-complete.sxml
@@ -24,8 +24,10 @@
(theme
#:title "About me"
- #:content (cadr (call-with-input-file "pages/about-complete.html"
- (lambda (port)
- (read-line port)
- (rewrite-absolute-urls-as-relative
- (xml->sxml port))))))
+ #:content
+ (call-with-input-file "pages/about-complete.html"
+ (lambda (port)
+ (read-line port)
+ `(div (@ (data-pagefind-body #t))
+ ,@(cadr (rewrite-absolute-urls-as-relative
+ (xml->sxml port)))))))

© 2015 - 2026 Jakob L. Kreuze