Add a default author and title in adaptable-template. Add an horizontal separator between the title and the content.
This commit is contained in:
parent
4b2739f516
commit
ede7ce01ae
|
@ -74,6 +74,7 @@
|
|||
(span ((class "author")) ,author) (br)
|
||||
,(if date date ""))
|
||||
(h1 ,title)
|
||||
(hr)
|
||||
,(apply-or-return content param))
|
||||
(footer ,(string-append "©2015-" (number->string (date-year (current-date))) " Feufochmar"))
|
||||
)))))
|
||||
|
@ -84,9 +85,9 @@
|
|||
(lambda (param)
|
||||
(define result (content param))
|
||||
((pages:template
|
||||
#:title (hash-ref result 'title)
|
||||
#:title (hash-ref result 'title "Untitled page")
|
||||
#:content (hash-ref result 'content)
|
||||
#:author (hash-ref result 'author)
|
||||
#:author (hash-ref result 'author "feuforeve.fr")
|
||||
#:date (hash-ref result 'date #f)
|
||||
#:stylesheets (hash-ref result 'stylesheets (list))
|
||||
#:scripts (hash-ref result 'scripts (list))
|
||||
|
|
Loading…
Reference in New Issue