summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--theme.scm45
1 files changed, 23 insertions, 22 deletions
diff --git a/theme.scm b/theme.scm
index 10a6ccc..0489cc1 100644
--- a/theme.scm
+++ b/theme.scm
@@ -93,19 +93,20 @@ free culture works available under the " ,%cc-by-sa-link " license.")
"."))))))
#:post-template
(lambda (post)
- `((h1 (@ (class "title")),(post-ref post 'title))
- (div (@ (class "date"))
- ,(date->string (post-date post)
- "~B ~d, ~Y"))
- (div (@ (class "tags"))
- "Tags:"
- (ul ,@(map (lambda (tag)
- `(li (a (@ (href ,(string-append "/feeds/tags/"
- tag ".xml")))
- ,tag)))
- (assq-ref (post-metadata post) 'tags))))
- (div (@ (class "post"))
- ,(post-sxml post))))
+ `((article
+ (h1 (@ (class "title")),(post-ref post 'title))
+ (div (@ (class "date"))
+ ,(date->string (post-date post)
+ "~B ~d, ~Y"))
+ (div (@ (class "tags"))
+ "Tags:"
+ (ul ,@(map (lambda (tag)
+ `(li (a (@ (href ,(string-append "/feeds/tags/"
+ tag ".xml")))
+ ,tag)))
+ (assq-ref (post-metadata post) 'tags))))
+ (div (@ (class "post"))
+ ,(post-sxml post)))))
#:collection-template
(lambda (site title posts prefix)
(define (post-uri post)
@@ -116,15 +117,15 @@ free culture works available under the " ,%cc-by-sa-link " license.")
(img (@ (class "feed-icon") (src "images/feed.png")))))
,(map (lambda (post)
(let ((uri (post-uri post)))
- `(div (@ (class "summary"))
- (h2 (a (@ (href ,uri))
- ,(post-ref post 'title)))
- (div (@ (class "date"))
- ,(date->string (post-date post)
- "~B ~d, ~Y"))
- (div (@ (class "post"))
- ,(first-paragraph post))
- (a (@ (href ,uri)) "read more →"))))
+ `(article (@ (class "summary"))
+ (h2 (a (@ (href ,uri))
+ ,(post-ref post 'title)))
+ (div (@ (class "date"))
+ ,(date->string (post-date post)
+ "~B ~d, ~Y"))
+ (div (@ (class "post"))
+ ,(first-paragraph post))
+ (a (@ (href ,uri)) "read more →"))))
posts)))
#:pagination-template
(lambda (site body previous-page next-page)