Add favicon
This commit is contained in:
parent
bdd063a17d
commit
5b3eaf2c35
1 changed files with 6 additions and 0 deletions
|
|
@ -3,10 +3,16 @@
|
||||||
(defn as-html [h]
|
(defn as-html [h]
|
||||||
(html/encode (html/doctype :html5) [: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]
|
(defn html-head [data]
|
||||||
[:head
|
[:head
|
||||||
[:meta {:charset "utf-8"}]
|
[:meta {:charset "utf-8"}]
|
||||||
[:title (get-in data [:config :title])]
|
[:title (get-in data [:config :title])]
|
||||||
|
[:link {:rel "icon"
|
||||||
|
:href favicon}]
|
||||||
[:style
|
[:style
|
||||||
[```
|
[```
|
||||||
body {
|
body {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue