diff options
| author | Jakob L. Kreuze | 2023-08-05 19:34:35 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2023-08-05 19:59:56 -0400 |
| commit | 9cd1dc2a045de2375c5afdc24996b5e8f1268b83 (patch) | |
| tree | 66d368692b0d0d7712f19daa0d74b9f5ef16812a /haunt/pages | |
| parent | e2911e800d659ded983fcc71f5e1b369cff88667 (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.sxml | 12 |
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))))))) |