Internal links weren't working in the left bar or the header. Now they are.

This commit is contained in:
simon 2014-11-14 15:33:47 +00:00
parent 009d047fbf
commit 8edd392ba9

View file

@ -84,8 +84,8 @@
(cond exists? (cond exists?
(layout/render "wiki.html" (layout/render "wiki.html"
{:title content {:title content
:left-bar (util/md->html "/content/_left-bar.md") :left-bar (local-links (util/md->html "/content/_left-bar.md"))
:header (util/md->html "/content/_header.md") :header (local-links (util/md->html "/content/_header.md"))
:content (local-links (util/md->html file-name)) :content (local-links (util/md->html file-name))
:user (session/get :user)}) :user (session/get :user)})
true (response/redirect (str "/edit?content=" content))))) true (response/redirect (str "/edit?content=" content)))))