Import config module in tag controller

parent 04645041
......@@ -21,6 +21,7 @@
(use-modules (app models posts)
(colt git)
(colt config)
(srfi srfi-1))
(define (filter-posts-by-tag tag posts)
......@@ -33,7 +34,7 @@
(h2 "Articles contains tag: "
(font (@ (class "red-text")) ,tag))
,(map (lambda (p)
`(p (a (@ (href ,(string-append "/articles/" (post-oid p))))
`(p (a (@ (href ,(string-append "/articles/" (post-url-name p))))
,(post-title p))))
posts)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment