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 +++ src/templates/partials/master.html | 5 +++-- src/templates/partials/nav.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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": diff --git a/src/templates/partials/master.html b/src/templates/partials/master.html index cebdd61..315c200 100644 --- a/src/templates/partials/master.html +++ b/src/templates/partials/master.html @@ -1,11 +1,12 @@ - + + - + short.adyxax.org diff --git a/src/templates/partials/nav.html b/src/templates/partials/nav.html index a4132e0..3566005 100644 --- a/src/templates/partials/nav.html +++ b/src/templates/partials/nav.html @@ -1,5 +1,5 @@