From 6624f5f69b688741f31a8e8e5d0579853db6071a Mon Sep 17 00:00:00 2001 From: Morgan Astra Date: Sat, 4 Nov 2017 16:05:47 -0700 Subject: A woman is not dead while her name is still spoken. --- src/pronouns/web.clj | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj index e57d7ec..bbbce82 100644 --- a/src/pronouns/web.clj +++ b/src/pronouns/web.clj @@ -47,6 +47,11 @@ (ANY "*" [] (route/not-found (slurp (io/resource "404.html"))))) +(defn wrap-gnu-natalie-nguyen [handler] + (fn [req] + (when-let [resp (handler req)] + (assoc-in resp [:headers "X-Clacks-Overhead"] "GNU Natalie Nguyen")))) + (defn wrap-error-page [handler] (fn [req] (try (handler req) @@ -60,6 +65,7 @@ (-> app-routes logger/wrap-with-logger wrap-error-page + wrap-gnu-natalie-nguyen trace/wrap-stacktrace params/wrap-params)) -- cgit From 61b41e10f9e7205b078b0c8f41eca41e533c8a03 Mon Sep 17 00:00:00 2001 From: Morgan Astra Date: Sat, 4 Nov 2017 16:11:30 -0700 Subject: remove defunct patreon link --- src/pronouns/pages.clj | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/pronouns/pages.clj b/src/pronouns/pages.clj index a9301e3..ea3d6b3 100644 --- a/src/pronouns/pages.clj +++ b/src/pronouns/pages.clj @@ -102,10 +102,6 @@ (twitter-name "morganastra") ", whose " (href "http://pronoun.is/ze/zir?or=she" "pronoun.is/ze/zir?or=she")] - [:p "Want to support this and similar websites? " - "Join us on " - (href "https://www.patreon.com/user?u=5238484" "Patreon") - "!"] [:p "pronoun.is is free software under the " (href "https://www.gnu.org/licenses/agpl.html" "AGPLv3") "! visit the project on " -- cgit From 864746273d868f7477e1f84898e989bff905737b Mon Sep 17 00:00:00 2001 From: Mat Schaffer Date: Sat, 11 Aug 2018 22:18:15 +0900 Subject: Fix spacing on not-found message Not familiar with hiccup, but I see similar spacing on https://github.com/witch-house/pronoun.is/blob/master/src/pronouns/pages.clj#L78 so figured I'd roll with it. --- src/pronouns/pages.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pronouns/pages.clj b/src/pronouns/pages.clj index ea3d6b3..62007bc 100644 --- a/src/pronouns/pages.clj +++ b/src/pronouns/pages.clj @@ -167,7 +167,7 @@ [:body (header-block title) [:div {:class "section examples"} - [:p [:h2 (str "We couldn't find those pronouns in our database." + [:p [:h2 (str "We couldn't find those pronouns in our database. " "If you think we should have them, please reach out!")]]] (footer-block)]]))) -- cgit