(tekuti tags) uses (web uri)
* tekuti/tags.scm (tag-link): Use (web uri).
This commit is contained in:
parent
0d4fc4e501
commit
1152ccf68a
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
;; Tekuti
|
;; Tekuti
|
||||||
;; Copyright (C) 2008 Andy Wingo <wingo at pobox dot com>
|
;; Copyright (C) 2008, 2010 Andy Wingo <wingo at pobox dot com>
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or
|
;; This program is free software; you can redistribute it and/or
|
||||||
;; modify it under the terms of the GNU General Public License as
|
;; modify it under the terms of the GNU General Public License as
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
(define-module (tekuti tags)
|
(define-module (tekuti tags)
|
||||||
#:use-module (tekuti util)
|
#:use-module (tekuti util)
|
||||||
#:use-module (tekuti url)
|
#:use-module (web uri)
|
||||||
#:use-module (tekuti config)
|
#:use-module (tekuti config)
|
||||||
#:use-module (tekuti post)
|
#:use-module (tekuti post)
|
||||||
#:use-module (tekuti git)
|
#:use-module (tekuti git)
|
||||||
|
@ -36,8 +36,10 @@
|
||||||
reindex-tags))
|
reindex-tags))
|
||||||
|
|
||||||
(define (tag-link tagname)
|
(define (tag-link tagname)
|
||||||
`(a (@ (href ,(string-append *public-url-base* "tags/"
|
`(a (@ (href ,(string-append
|
||||||
(url:encode tagname))))
|
"/" (encode-and-join-uri-path
|
||||||
|
(append *public-path-base*
|
||||||
|
(cons "tags" tagname))))))
|
||||||
,tagname))
|
,tagname))
|
||||||
|
|
||||||
(define (compute-tags posts)
|
(define (compute-tags posts)
|
||||||
|
|
Loading…
Reference in a new issue