aboutsummaryrefslogtreecommitdiff
path: root/haunt/jakob/builder
diff options
context:
space:
mode:
Diffstat (limited to 'haunt/jakob/builder')
-rw-r--r--haunt/jakob/builder/blog.scm48
1 files changed, 24 insertions, 24 deletions
diff --git a/haunt/jakob/builder/blog.scm b/haunt/jakob/builder/blog.scm
index 3285a51..544bf61 100644
--- a/haunt/jakob/builder/blog.scm
+++ b/haunt/jakob/builder/blog.scm
@@ -69,29 +69,28 @@
"To read the full post, visit "
,(hyperlink (post-ref post 'crosspost) "this link")
"."))
- (article ,(post-sxml post))
- (section
- (@ (id "webmention"))
- (h2 "Comments for this page")
- (ul (@ (class "webmention-container"))
- ,@(render-comment-view (fetch-comments (post-identifier post)) (fetch-webmentions (post-identifier post))))
- (div (@ (id "comment-form-primary") (hidden #t))
- ,(render-dynamic-comment-form (post-identifier post)))
- (p (@ (id "comment-form-alt"))
- "Click " ,(hyperlink (build-comment-url post) "here") " to write a comment on this post.")
- (form
- (@ (id "webmention-form")
- (action "https://webmention.io/jakob.space/webmention")
- (method "post"))
- (label "Alternatively, if you've written about this "
- ,(hyperlink "https://indieweb.org/responses" "elsewhere")
- ", you can let me know the URL:")
- (input (@ (name "source") (type "url")))
- (input (@ (value "Send Webmention") (type "submit"))))
- ,(script "section-folds.js")
- ,(script "comment-reaction.js")
- ;; ,(script "webmention.js")
- )))
+ (div (@ (data-pagefind-body #t))
+ (article ,(post-sxml post))
+ (section
+ (@ (id "webmention"))
+ (h2 "Comments for this page")
+ (ul (@ (class "webmention-container"))
+ ,@(render-comment-view (fetch-comments (post-identifier post)) (fetch-webmentions (post-identifier post))))
+ (div (@ (id "comment-form-primary") (hidden #t))
+ ,(render-dynamic-comment-form (post-identifier post)))
+ (p (@ (id "comment-form-alt"))
+ "Click " ,(hyperlink (build-comment-url post) "here") " to write a comment on this post.")
+ (form
+ (@ (id "webmention-form")
+ (action "https://webmention.io/jakob.space/webmention")
+ (method "post"))
+ (label "Alternatively, if you've written about this "
+ ,(hyperlink "https://indieweb.org/responses" "elsewhere")
+ ", you can let me know the URL:")
+ (input (@ (name "source") (type "url")))
+ (input (@ (value "Send Webmention") (type "submit"))))
+ ,(script "section-folds.js")
+ ,(script "comment-reaction.js")))))
(define (render-preview post)
"Return the SHTML for a preview of POST."
@@ -193,7 +192,8 @@ of the 'post' objects associated with the site."
;; Main post navigation.
(items->pages render-preview (posts/reverse-chronological posts)
- "Recent Posts" "index")
+ "Recent Posts" "index"
+ #:enable-search #t)
;; Tag-based navigation.
(list (all-tags posts))

© 2015 - 2026 Jakob L. Kreuze