add main tag cloud page
* tekuti/page-helpers.scm: Export top-tags. * tekuti/page.scm (page-show-tags): Implement the main tag cloud page. Yay!
This commit is contained in:
parent
df96b1f07e
commit
e1e44eb8f0
2 changed files with 6 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
|||
#:export (relurl rellink redirect post-url
|
||||
published-posts
|
||||
post-editing-form
|
||||
sidebar-ul main-sidebar tag-cloud post-sidebar
|
||||
sidebar-ul main-sidebar top-tags tag-cloud post-sidebar
|
||||
post-link admin-post-link admin-post-redirect
|
||||
show-post with-authentication
|
||||
atom-header atom-entry))
|
||||
|
|
|
@ -251,7 +251,11 @@
|
|||
(else (lp (cdr posts))))))))
|
||||
|
||||
(define (page-show-tags request index)
|
||||
(not-implemented request index))
|
||||
(rcons* request
|
||||
'title (string-append "all tags -- " *title*)
|
||||
'body `((div (@ (id "tag-cloud"))
|
||||
(h2 "all tags")
|
||||
,@(tag-cloud (top-tags index 200))))))
|
||||
|
||||
(define (page-show-tag request index tag)
|
||||
(let* ((tags (assq-ref index 'tags))
|
||||
|
|
Loading…
Reference in a new issue