(haunt builder blog)
(haunt builder atom)
(haunt builder assets)
+ (haunt html)
+ (haunt page)
(haunt reader)
(haunt reader texinfo)
(haunt site)
`(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
`((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
(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)))
#: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")))