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 ++++ static/calendar.svg | 64 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 static/calendar.svg 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) diff --git a/static/calendar.svg b/static/calendar.svg new file mode 100644 index 00000000..d9e42da8 --- /dev/null +++ b/static/calendar.svg @@ -0,0 +1,64 @@ + + + + + + + + image/svg+xml + + + + + + + + + -- cgit v1.2.3