From 5b3eaf2c35dac91d2c52fe4d44d8268f5ac546a2 Mon Sep 17 00:00:00 2001 From: heyarne Date: Thu, 15 Jul 2021 22:26:58 +0200 Subject: [PATCH] Add favicon --- views.janet | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/views.janet b/views.janet index bd8c242..24f5463 100644 --- a/views.janet +++ b/views.janet @@ -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,🌌") + (defn html-head [data] [:head [:meta {:charset "utf-8"}] [:title (get-in data [:config :title])] + [:link {:rel "icon" + :href favicon}] [:style [``` body {