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 | |
| parent | 849efab76c602a2410fc3f4c946314ebb35c9d12 (diff) | |
Add support for showing tags on posts
| -rw-r--r-- | css/jakob.css | 16 | ||||
| -rw-r--r-- | custom/theme.scm | 6 |
2 files changed, 22 insertions, 0 deletions
diff --git a/css/jakob.css b/css/jakob.css index ceb6337..8300904 100644 --- a/css/jakob.css +++ b/css/jakob.css @@ -186,6 +186,22 @@ nav a:visited { color: #666; } +.tags { + margin-top: -2rem; + color: #666; +} + +.tags ul { + display: inline; + list-style: none; + padding-left: 0; +} + +.tags li { + display: inline; + padding-right: 0.5rem; +} + .post img, .centered-image { display: block; max-width: 100%; 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 |