diff options
author | Ben Sima <ben@bsima.me> | 2020-05-15 13:53:15 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-05-15 13:53:15 -0700 |
commit | 6e58eb2c990aad59ec84f1c7751028a18d8cb9d0 (patch) | |
tree | d1b6eac3bafeb1422ddd808cbb149d98889e4067 | |
parent | 3420022462e7f27ee8821d4192ce86eb157a3af2 (diff) |
Replace quote syntax with list function
Way easier to read this way.
-rw-r--r-- | z.scm | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 |