about summary refs log tree commit diff
path: root/src/pronouns
diff options
context:
space:
mode:
authorMorgan Astra <m@morganastra.me>2016-09-24 01:28:13 -0700
committerMorgan Astra <m@morganastra.me>2016-09-24 01:28:13 -0700
commit349a4a220167de3d58a59107b423c1d08b53598c (patch)
tree3a044e3f5f37e5ef9be64f21087e7c24012e1351 /src/pronouns
parentcf48e336dabbbb9bbe20397c37ce1bb3257c49cc (diff)
use midje for testing per #57
Diffstat (limited to 'src/pronouns')
-rw-r--r--src/pronouns/pages.clj8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pronouns/pages.clj b/src/pronouns/pages.clj
index 5b2ad36..9c1e02b 100644
--- a/src/pronouns/pages.clj
+++ b/src/pronouns/pages.clj
@@ -25,7 +25,7 @@
   [items]
   (let [c (count items)]
     (cond
-      (<= c 1) (first items)
+      (<= c 1) (or (first items) "")
       (= c 2) (s/join " and " items)
       :else (str (s/join ", " (butlast items)) ", and " (last items)))))
 
@@ -122,7 +122,7 @@
        [:meta {:name "viewport" :content "width=device-width"}]
        [:link {:rel "stylesheet" :href "/pronouns.css"}]]
       [:body
-       (title-block title)
+       (header-block title)
        (map #(apply examples-block %) pronoun-declensions)
        (footer-block)]])))
 
@@ -149,7 +149,7 @@
        [:meta {:name "viewport" :content "width=device-width"}]
        [:link {:rel "stylesheet" :href "/pronouns.css"}]]
       [:body
-       (title-block title)
+       (header-block title)
        [:div {:class "section table"}
        [:p "pronoun.is is a website for personal pronoun usage examples"]
        [:p "here are some pronouns the site knows about:"]
@@ -165,7 +165,7 @@
        [:meta {:name "viewport" :content "width=device-width"}]
        [:link {:rel "stylesheet" :href "/pronouns.css"}]]
       [:body
-       (title-block title)
+       (header-block title)
       [:div {:class "section examples"}
        [:p [:h2 (str "We couldn't find those pronouns in our database."
                      "If you think we should have them, please reach out!")]]]