diff options
| -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 |