From bacb41ec287388e0f39bdf8e7e312b4f1a1a4fef Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 29 Oct 2021 17:40:46 +0200 Subject: Added svg favicon and reworked the max-width handling of many elements --- src/short.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/short.nim') diff --git a/src/short.nim b/src/short.nim index 19f905e..8f243c6 100644 --- a/src/short.nim +++ b/src/short.nim @@ -10,6 +10,7 @@ import database const allCss = staticRead("../static/all.css") const cssRoute = "/static/all.css." & $hash(allCss) const favicon = staticRead("../static/favicon.ico") +const faviconSvg = staticRead("../static/favicon.svg") var db {.threadvar.}: DbConn @@ -106,6 +107,8 @@ routes: redirect("/" & content) get "/static/favicon.ico": resp Http200, {"content-type": "image/x-icon"}, favicon + get "/static/favicon.svg": + resp Http200, {"content-type": "image/svg+xml"}, faviconSvg get re"^/static/all\.css\.": resp Http200, {"content-type": "text/css"}, allcss get "/@token": -- cgit v1.2.3