aboutsummaryrefslogtreecommitdiff
path: root/haunt/jakob/builder/blog.scm
diff options
context:
space:
mode:
authorJakob L. Kreuze2022-05-07 21:53:34 -0400
committerJakob L. Kreuze2022-05-08 19:10:19 -0400
commitf6bd35e8e10faf4db80d6c8ccb45a5beae44c2be (patch)
tree574bff4e3bb8fc98d2c38f1d91e2d938bc4a5caa /haunt/jakob/builder/blog.scm
parent96ad1a33e34ddcdd06cf31855e680a9b1b45c36a (diff)
[scheme] Initial comments API
Diffstat (limited to 'haunt/jakob/builder/blog.scm')
-rw-r--r--haunt/jakob/builder/blog.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/haunt/jakob/builder/blog.scm b/haunt/jakob/builder/blog.scm
index 8f02a80..2e54998 100644
--- a/haunt/jakob/builder/blog.scm
+++ b/haunt/jakob/builder/blog.scm
@@ -80,6 +80,37 @@
"."))
(article ,(post-sxml post))
(section
+ (@ (id "comments"))
+ (h2 "Comments for this Page")
+ (ul (@ (id "comment-container")))
+ (form
+ (@ (action "https://jakob.space/api/comment")
+ (method "post"))
+ (label (@ (for "name")) "Name:")
+ (br)
+ (input (@ (name "name") (id "name") (type "text")))
+ (br)
+ (label (@ (for "email")) "Email (optional; only used for Gravatar):")
+ (br)
+ (input (@ (name "email") (id "email") (type "text")))
+ (br)
+ (label (@ (for "url")) "Homepage (optional):")
+ (br)
+ (input (@ (name "url") (id "url") (type "text")))
+ (br)
+ (label (@ (for "comment")) "Comment (Markdown supported):")
+ (br)
+ (textarea (@ (name "comment") (id "comment") (rows "4") (cols "50") (maxlength "1024")))
+ (br)
+ (label (@ (for "captcha")) "Captcha: Please integrate the following definite integral.")
+ (br)
+ (img (@ (id "captcha") (alt "captcha-image")))
+ (br)
+ (input (@ (name "captcha") (id "captcha") (type "text")))
+ (br)
+ (input (@ (value "Submit") (type "submit"))))
+ ,(script "local.js"))
+ (section
(@ (id "webmention"))
(h2 ,(hyperlink "https://indieweb.org/Webmention" "Webmentions")
" for this Page")

© 2015 - 2026 Jakob L. Kreuze