From 39b13d25c9c8199460d00ba52c2a3774b03bd7be Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Fri, 14 Feb 2020 14:12:19 +0100 Subject: [PATCH] fancier title --- src/wanijo/public/view.clj | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wanijo/public/view.clj b/src/wanijo/public/view.clj index a9729c7..c900c6f 100644 --- a/src/wanijo/public/view.clj +++ b/src/wanijo/public/view.clj @@ -3,13 +3,13 @@ [hiccup.core :refer [h]] [wanijo.infrastructure.routing :refer [path]])) -(defn layout [content] +(defn layout [title content] (html5 [:head [:meta {:charset "utf-8"}] [:meta {:name "viewport" :content "width=device-width,initial-scale=1,shrink-to-fit=no"}] - [:title "Moxie!"] + [:title title " - Moxie!"] (include-css "/css/bootstrap.min.css" "/css/public.css") (include-js "/js/bootstrap.min.js")] @@ -42,6 +42,7 @@ (defn index [] (layout + "Index" [[:main.main [:h1 "Schön, dass du da bist!"] [:h2 "Willkommen auf der TRIO-Wissensplattform"] @@ -53,6 +54,7 @@ (defn show-coc [coc roles-with-levels] (layout + (h (:name coc)) [[:main.main [:h1 "CoC " (h (:name coc))] [:div.table-responsive @@ -88,6 +90,7 @@ (defn show-modules [coc level modules-with-comps] (layout + (h (:name level)) [[:main.main [:h1 "Erfahrungsstufe " (h (:name level))] [:div.table-responsive