From 10fd87774b5c1449b987bf4cf1dbc7482c663b8e Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Tue, 25 Apr 2017 21:49:21 +0200 Subject: [PATCH] Fix pagination #27 Why the hell does a class vector not work? https://github.com/weavejester/hiccup/blob/master/src/hiccup/compiler.clj#L76 --- src/clj/yenu/routes/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/yenu/routes/core.clj b/src/clj/yenu/routes/core.clj index d62aa15..171b841 100644 --- a/src/clj/yenu/routes/core.clj +++ b/src/clj/yenu/routes/core.clj @@ -17,7 +17,7 @@ (defn page [number is-current? additional-class content] (h/html - [:li {:class (cond-> ["page-item"] is-current? (conj additional-class))} + [:li {:class (cond-> "page-item" is-current? (str " " additional-class))} [:a.page-link {:href (str "/page/" number)} content]])) (defn dots []