- (href ,(string-append "/css/" name ".css")))))
+ (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)))
- (a (@ (href "/")) (img (@ (src ,(assoc-ref metadata 'picture)))))
- (h1 (a (@ (href "/")) ,(assoc-ref metadata 'author)))
+ (a (@ (href "index.html")) (img (@ (src ,(assoc-ref metadata 'picture)))))
+ (h1 (a (@ (href "index.html")) ,(assoc-ref metadata 'author)))
`((article (@ (class "single"))
(header
(h1 ,(post-ref post 'title))
`((article (@ (class "single"))
(header
(h1 ,(post-ref post 'title))
(h2
(a (@ (href ,(post-uri post)))
,(post-ref post 'title)))
(h2
(a (@ (href ,(post-uri post)))
,(post-ref post 'title)))
(div ,(post-summary post)
(br)
(a (@ (class "btn") (href ,(post-uri post))) " Seguir leyendo "))
(hr)))
(posts/reverse-chronological posts))))))
(div ,(post-summary post)
(br)
(a (@ (class "btn") (href ,(post-uri post))) " Seguir leyendo "))
(hr)))
(posts/reverse-chronological posts))))))
(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)
(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)
(static-directory "images")
(static-directory "fonts")
(static-directory "css")))
(static-directory "images")
(static-directory "fonts")
(static-directory "css")))