Add favicon

This commit is contained in:
heyarne 2021-07-15 22:26:58 +02:00
commit 5b3eaf2c35

View file

@ -3,10 +3,16 @@
(defn as-html [h]
(html/encode (html/doctype :html5) [:html h]))
# thanks to https://css-tricks.com/emojis-as-favicons/
(def favicon
"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌌</text></svg>")
(defn html-head [data]
[:head
[:meta {:charset "utf-8"}]
[:title (get-in data [:config :title])]
[:link {:rel "icon"
:href favicon}]
[:style
[```
body {