Fix pagination #27

Why the hell does a class vector not work?
https://github.com/weavejester/hiccup/blob/master/src/hiccup/compiler.clj#L76
This commit is contained in:
Aaron Fischer 2017-04-25 21:49:21 +02:00
parent 8e75c00a8e
commit 10fd87774b

View file

@ -17,7 +17,7 @@
(defn page [number is-current? additional-class content] (defn page [number is-current? additional-class content]
(h/html (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]])) [:a.page-link {:href (str "/page/" number)} content]]))
(defn dots [] (defn dots []