summaryrefslogtreecommitdiff
path: root/src/components.clj
diff options
context:
space:
mode:
authorJake Zerrer <him@jakezerrer.com>2025-11-30 12:31:01 -0500
committerJake Zerrer <him@jakezerrer.com>2025-11-30 17:27:46 -0500
commit119cf7f780375187dbe3d064263a9de3a17f538d (patch)
tree376d48fc42d19ed49ca3f740e7c0e4c15596d11d /src/components.clj
parent034e30d70aeac7ce18f34be6a1c211730e9fd7fb (diff)
Move from github pages to server
Diffstat (limited to 'src/components.clj')
-rw-r--r--src/components.clj50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/components.clj b/src/components.clj
deleted file mode 100644
index ed0444d..0000000
--- a/src/components.clj
+++ /dev/null
@@ -1,50 +0,0 @@
-(ns components
- (:require [borkdude.html :refer [html]]
- [highlight :refer [highlight-styles]]))
-
-(defn template [body]
- (html
- [:html
- {:style {:font-family "monospace"}}
- [:head
- [:style
- [:$
- (str
- (highlight-styles :code "default")
- (highlight-styles :output "default")
- "li { line-height: 1.6; }"
- "p { line-height: 1.6; font-family: Palatino; }"
- ".page-body p { max-width: 44em; }"
- ".page-body blockquote { max-width: 44em; }"
- ".highlight { padding: 1px; padding-left: 6px; }")]]
- [:meta {:charset "UTF-8"}]]
- [:body
- [:<> body]
- [:footer
- [:br]
- [:br]
- [:p "---"]
- [:span
- [:a {:href "https://github.com/telekid/jakezerrer"} "page src"]
- " | "
- [:a {:href "mailto:contact@jakezerrer.com?subject=Blog post"} "contact me"]]]]]))
-
-(defn page [body]
- (template
- (html
- [:<>
- [:p [:a {:href "/"} "< home"]]
- [:div {:class "page-body"}
- body]])))
-
-(defn blockquote [body [from to]]
- (html
- [:figure
- {:style {:margin-left "0" :margin-bottom "2"}}
- [:blockquote
- body]
- [:figcaption
- (html
- (if (nil? to)
- (html [:<> (str "p. " from)])
- (html [:<> (str "pp. " from "-" to)])))]]))