From: Amin Bandali Date: Sat, 30 Nov 2019 06:52:04 +0000 (-0500) Subject: use table for my-collection-template X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/commitdiff_plain/1202585a63c07b597ed88a165212435f8b21e983 use table for my-collection-template --- diff --git a/haunt.scm b/haunt.scm index bb6079e..f2a06d0 100644 --- a/haunt.scm +++ b/haunt.scm @@ -66,14 +66,16 @@ (string-append (or prefix "") "/" (site-post-slug site post) ".html")) - `((h3 ,title) - (ul - ,@(map (lambda (post) - `(li - ,(aa (post-ref post 'title) (post-uri post)) - " — " - ,(date->string (post-date post) my-date-format))) - posts)))) + `((h2 ,title) + (table + (@ (class "post-list")) + (tbody + ,@(map (lambda (post) + `(tr + (td ,(aa (post-ref post 'title) (post-uri post))) + (td (@ (style "font-size: 0.875em;")) + ,(date->string (post-date post) my-date-format)))) + posts))))) (define bandali-theme (theme #:name "bandali"