(define (stylesheet name)
`(link (@ (rel "stylesheet")
- (href ,(string-append "/css/" name ".css")))))
+ (href ,(string-append "css/" name ".css")))))
(define flex-theme
(theme #:name "Flex"
,(let ((metadata (site-default-metadata site)))
`(aside
(div
- (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)))
(p ,(assoc-ref metadata 'description))
(nav
(ul (@ (class "list"))
" "
(li (a (@ (class "sc-twitter") (target "_blank") (href "")) (i (@ (class "fa fa-twitter")))))
" "
- (li (a (@ (class "sc-rss") (target "_blank") (href "/feed.xml")) (i (@ (class "fa fa-rss")))))))))
+ (li (a (@ (class "sc-rss") (target "_blank") (href "feed.xml")) (i (@ (class "fa fa-rss")))))))))
(main ,body)))))
#:post-template
#:collection-template
(lambda (site title posts prefix)
(define (post-uri post)
- (string-append "/" (or prefix "")
+ (string-append (or prefix "")
(site-post-slug site post) ".html"))
(define (get-paragraphs sxml count)
'((author . "Javier Sancho")
(description . "Free Software Evangelist - Programmer")
(email . "jsf@jsancho.org")
- (picture . "/images/jsancho.jpg")
+ (picture . "images/jsancho.jpg")
(pages . (("about" . "about.html")
("projects" . "http://git.jsancho.org/"))))
#:readers (list sxml-reader html-reader)