1
0
Fork 0

Fix tag pages by reverting to the original layout

This commit is contained in:
Tom Willemse 2021-05-31 20:44:34 -07:00
parent d34a14b3d6
commit 32b9adf4bf

View file

@ -301,10 +301,13 @@
(post-from-key index key))
(hash-ref tags tag '()))))
(if (pair? posts)
(respond `(,(tag-sidebar tag index)
(h2 "posts tagged \"" ,tag "\"")
,@(map (lambda (post) (show-post post #f))
(take-max (reverse posts) 10)))
(respond `((h2 "posts tagged \"" ,tag "\" ("
,(rellink '("feed" "atom") "feed"
#:query `(("with" . ,tag)))
")")
,@(map (lambda (post) `(p ,(post-link post)))
(take-max (reverse posts) 10))
,(related-tag-cloud tag index))
#:etag (assq-ref index 'master)
#:title (string-append "posts tagged \"" tag "\""))
(respond `((h2 "Unknown tag " ,tag)