From 44acad0b37098ef22c87389cbe9a075c0772ef9a Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Thu, 2 May 2019 16:36:50 -0400 Subject: Add support for showing tags on posts --- custom/theme.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'custom/theme.scm') 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 -- cgit v1.3