summaryrefslogtreecommitdiff
path: root/src/short.nim
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-29 17:40:46 +0200
committerJulien Dessaux2021-10-29 17:40:46 +0200
commitbacb41ec287388e0f39bdf8e7e312b4f1a1a4fef (patch)
tree2065e66364ba7d5648e54ebc4c6f68622fba8130 /src/short.nim
parentTweaked some vertical spacing (diff)
downloadshort-bacb41ec287388e0f39bdf8e7e312b4f1a1a4fef.tar.gz
short-bacb41ec287388e0f39bdf8e7e312b4f1a1a4fef.tar.bz2
short-bacb41ec287388e0f39bdf8e7e312b4f1a1a4fef.zip
Added svg favicon and reworked the max-width handling of many elements
Diffstat (limited to 'src/short.nim')
-rw-r--r--src/short.nim3
1 files changed, 3 insertions, 0 deletions
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":