summaryrefslogtreecommitdiff
path: root/z.scm
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-05-15 13:53:15 -0700
committerBen Sima <ben@bsima.me>2020-05-15 13:53:15 -0700
commit6e58eb2c990aad59ec84f1c7751028a18d8cb9d0 (patch)
treed1b6eac3bafeb1422ddd808cbb149d98889e4067 /z.scm
parent3420022462e7f27ee8821d4192ce86eb157a3af2 (diff)
Replace quote syntax with list function
Way easier to read this way.
Diffstat (limited to 'z.scm')
-rw-r--r--z.scm13
1 files changed, 8 insertions, 5 deletions
diff --git a/z.scm b/z.scm
index 50ea60a..65f73af 100644
--- a/z.scm
+++ b/z.scm
@@ -268,11 +268,14 @@ NL < '\n'
(let* ([node (load-node (string->id id))]
[txt (or (get-content node) "")])
(respond
- `(,(->> txt
- pandoc
- ;; wrap in article tags so sxml includes all of the content
- ((/. s (string.str "<article>" s "</article>")))
- xml->sxml))
+ (->> txt
+ pandoc
+ ;; wrap in article tags so sxml includes all of the
+ ;; content, not jus the first element
+ ((/. s (string.str "<article>" s "</article>")))
+ xml->sxml
+ ;; wrap in a list to prevent *TOP* from being rendered
+ list)
#:title (fmt "z - ~a" (title node))))]
[("tag")
(begin