aboutsummaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-05-02 16:36:50 -0400
committerJakob L. Kreuze2019-05-02 16:36:50 -0400
commit44acad0b37098ef22c87389cbe9a075c0772ef9a (patch)
treec6ec682a195197a91a4df8ac75f3013f94d8c854 /custom
parent849efab76c602a2410fc3f4c946314ebb35c9d12 (diff)
Add support for showing tags on posts
Diffstat (limited to 'custom')
-rw-r--r--custom/theme.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/custom/theme.scm b/custom/theme.scm
index b41c0c4..897cebb 100644
--- a/custom/theme.scm
+++ b/custom/theme.scm
@@ -101,6 +101,12 @@ license.")
(div (@ (class "date"))
,(date->string (post-date post)
"~B ~d, ~Y"))
+ (div (@ (class "tags"))
+ (ul
+ (li "Tagged as"
+ ,@(map (lambda (tag)
+ `(li ,(link tag (format #f "/tag-~a.html" tag))))
+ (post-ref post 'tags)))))
(div (@ (class "post"))
,(post-sxml post))))
#:collection-template

© 2015 - 2026 Jakob L. Kreuze