diff options
| author | Jakob L. Kreuze | 2019-05-02 16:36:50 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-05-02 16:36:50 -0400 |
| commit | 44acad0b37098ef22c87389cbe9a075c0772ef9a (patch) | |
| tree | c6ec682a195197a91a4df8ac75f3013f94d8c854 /custom | |
| parent | 849efab76c602a2410fc3f4c946314ebb35c9d12 (diff) | |
Add support for showing tags on posts
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/theme.scm | 6 |
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 |