From 8fe3e26981ef8eccfdff056ef5d3fc754e2329bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 6 Aug 2020 18:30:49 +0200 Subject: Add favicon. --- module/entry-points/server.scm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'module/entry-points') diff --git a/module/entry-points/server.scm b/module/entry-points/server.scm index 7fa6ceb0..4e6332ad 100644 --- a/module/entry-points/server.scm +++ b/module/entry-points/server.scm @@ -68,6 +68,11 @@ (return '((content-type text/html)) (sxml->html-string '(a (@ (href "/today")) "Gå till idag")))) + (GET "/favicon.ico" () + (return + `((content-type image/svg+xml)) + (call-with-input-file "static/calendar.svg" read-string))) + ;; TODO any exception in this causes the whole page to fail ;; It would be much better if most of the page could still make it. (GET "/week/:start-date.html" (start-date) -- cgit v1.2.3