X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=haunt.scm;h=3554f3594aa3319bbfa21efabc0b22fcafa6e2ae;hb=e93ca35626edc34b10510317fa259ca5186bcbc5;hp=8924dd6e32020df383436d504ac84687fe974537;hpb=222184207ce31c9588c7c3cd5533469ae13a74ec;p=blog.git diff --git a/haunt.scm b/haunt.scm index 8924dd6..3554f35 100644 --- a/haunt.scm +++ b/haunt.scm @@ -67,7 +67,7 @@ (a (@ (href "index.html")) (h1 ,(assoc-ref metadata 'author))))) (ul (@ (class "navigation-items center")) - (li (a (@ (href "https://jsancho.org/")) "in spanish"))) + (li (a (@ (href "https://www.jsancho.org/")) "in spanish"))) (ul (@ (class "navigation-items right")) ,@(map (lambda (page) `(li (a (@ (href ,(cdr page))) ,(car page)))) @@ -95,15 +95,13 @@ res) ((and (pair? (car sxml)) (eq? (caar sxml) 'p)) (getp (cdr sxml) (- count 1) (cons (car sxml) res))) - ((and (pair? (car sxml)) (eq? (caar sxml) 'a)) - (getp (cdr sxml) count (cons (car sxml) res))) (else - (getp (cdr sxml) count res)))) + (getp (cdr sxml) count (cons (car sxml) res))))) (reverse (getp sxml count '()))) (define (post-summary post) (or (post-ref post 'summary) - (get-paragraphs (cdr (post-sxml post)) 3))) + (get-paragraphs (cdar (post-sxml post)) 3))) `( ,@(map (lambda (post)