X-Git-Url: https://git.jsancho.org/?p=blog.git;a=blobdiff_plain;f=haunt.scm;h=87469519c67ccab7f7987d6cd6f3b06d277202b7;hp=04bada489e51b58ffe5890f08a236a0bb8612dc8;hb=67c9f52cdcf34023e67e38780a9976906aea107c;hpb=f2e6be89d151a9fd53ab043e5d9a939dc3463990 diff --git a/haunt.scm b/haunt.scm index 04bada4..8746951 100644 --- a/haunt.scm +++ b/haunt.scm @@ -2,6 +2,8 @@ (haunt builder blog) (haunt builder atom) (haunt builder assets) + (haunt html) + (haunt page) (haunt reader) (haunt reader texinfo) (haunt site) @@ -13,6 +15,12 @@ `(link (@ (rel "stylesheet") (href ,(string-append "css/" name ".css"))))) +(define (static-page title file-name body) + (lambda (site posts) + (make-page file-name + (with-layout flex-theme site title body) + sxml->html))) + (define flex-theme (theme #:name "Flex" #:layout @@ -58,7 +66,7 @@ `((article (@ (class "single")) (header (h1 ,(post-ref post 'title)) - (p "Posted on " ,(date->string (post-date post) "~B ~d, ~Y"))) + (p "Publicado el " ,(date->string (post-date post) "~d/~m/~Y"))) ,(post-sxml post) (div (@ (class "tag-cloud")) (p @@ -89,13 +97,19 @@ (h2 (a (@ (href ,(post-uri post))) ,(post-ref post 'title))) - (p "Posted on " ,(date->string (post-date post) "~B ~d, ~Y"))) + (p "Publicado el " ,(date->string (post-date post) "~d/~m/~Y"))) (div ,(post-summary post) (br) - (a (@ (class "btn") (href ,(post-uri post))) " Continue reading ")) + (a (@ (class "btn") (href ,(post-uri post))) " Seguir leyendo ")) (hr))) (posts/reverse-chronological posts)))))) +(define about-page + (static-page + "About me" + "about.html" + `((h2 "hi.")))) + (define %collections `(("Home" "index.html" ,posts/reverse-chronological))) @@ -103,15 +117,16 @@ #:domain "jsancho.org" #:default-metadata '((author . "Javier Sancho") - (description . "Free Software Evangelist - Programmer") + (description . "Evangelizador del software libre - Programador") (email . "jsf@jsancho.org") (picture . "images/jsancho.jpg") - (pages . (("about" . "about.html") - ("projects" . "http://git.jsancho.org/")))) + (pages . (("sobre mi" . "about.html") + ("proyectos" . "http://git.jsancho.org/")))) #:readers (list sxml-reader html-reader) #:builders (list (blog #:theme flex-theme #:collections %collections) (atom-feed) (atom-feeds-by-tag) + about-page (static-directory "images") (static-directory "fonts") (static-directory "css")))