]> git.jsancho.org Git - blog.git/blobdiff - haunt.scm
Change photo
[blog.git] / haunt.scm
index 07b2a794a73f0c11131ac4c4ac3dbe04e0c68c00..8566cce52159dbbe10a4114f7184cd83ef648d68 100644 (file)
--- a/haunt.scm
+++ b/haunt.scm
                        " "
                        (li (a (@ (class "sc-rss") (target "_blank") (href "/feed.xml")) (i (@ (class "fa fa-rss")))))))))
               (main ,body))))
                        " "
                        (li (a (@ (class "sc-rss") (target "_blank") (href "/feed.xml")) (i (@ (class "fa fa-rss")))))))))
               (main ,body))))
+
         #:post-template
         (lambda (post)
         #:post-template
         (lambda (post)
+          (define (get-tags post)
+            (or (assoc-ref (post-metadata post) 'tags) '()))
+
           `((article (@ (class "single"))
                      (header
                       (h1 ,(post-ref post 'title))
                       (p ,(date->string* (post-date post))))
                      ,(post-sxml post)
                      (div (@ (class "tag-cloud"))
           `((article (@ (class "single"))
                      (header
                       (h1 ,(post-ref post 'title))
                       (p ,(date->string* (post-date post))))
                      ,(post-sxml post)
                      (div (@ (class "tag-cloud"))
-                          (p (a (@ (href "")) "prueba"))))))
+                          (p
+                           ,@(map (lambda (tag)
+                                    `((a (@ (href "")) ,tag) " "))
+                                  (get-tags post)))))))
+
          #:collection-template
          (lambda (site title posts prefix)
            (define (post-uri post)
          #:collection-template
          (lambda (site title posts prefix)
            (define (post-uri post)
       '((author . "Javier Sancho")
         (description . "Free Software Evangelist - Programmer")
         (email . "jsf@jsancho.org")
       '((author . "Javier Sancho")
         (description . "Free Software Evangelist - Programmer")
         (email . "jsf@jsancho.org")
-        (picture . "/images/jsancho2.jpg")
+        (picture . "/images/jsancho.jpg")
         (pages . (("sobre mi" . "about.html")
                   ("proyectos" . "http://git.jsancho.org/"))))
       #:readers (list sxml-reader html-reader)
         (pages . (("sobre mi" . "about.html")
                   ("proyectos" . "http://git.jsancho.org/"))))
       #:readers (list sxml-reader html-reader)