]> git.jsancho.org Git - blog.git/commitdiff
Separate post tags with commas
authorJavier Sancho <jsf@jsancho.org>
Mon, 26 Feb 2018 16:00:59 +0000 (17:00 +0100)
committerJavier Sancho <jsf@jsancho.org>
Mon, 26 Feb 2018 16:00:59 +0000 (17:00 +0100)
haunt.scm

index 96838c43ff357632b203a1d04777bcdb89bd3fa2..7ad26eebc47d1e48cce23476d47d4f6bd9f05d62 100644 (file)
--- a/haunt.scm
+++ b/haunt.scm
                   `(" "
                     (span (@ (style "margin: 0 3px")) ⦿)
                     (span (@ (class "tags"))
-                          ,@(map (lambda (tag)
-                                   `((a (@ (href ,(format #f "tags/~a.html" tag))) ,tag) " "))
-                                 tags)))))
+                          ,@(drop-right
+                              (apply
+                               append
+                               (map (lambda (tag)
+                                      `((a (@ (href ,(format #f "tags/~a.html" tag))) ,tag) ", "))
+                                    tags))
+                              1)))))
          (else
           div))))