aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/short.nim3
-rw-r--r--src/templates/partials/master.html5
-rw-r--r--src/templates/partials/nav.html2
3 files changed, 7 insertions, 3 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":
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 @@
<!doctype html>
<html class="no-js" lang="en">
<head>
- <link rel="icon" href="/static/favicon.ico">
+ <link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
+ <link rel="alternate icon" href="/static/favicon.ico">
<link rel="stylesheet" href="{{ $cssRoute }}">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
-
+ <meta name="description" content="The simple, self-hosted, open source and privacy friendly URL shortener : anonymous usage, no tracking.">
<title>short.adyxax.org</title>
</head>
<body>
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 @@
<nav>
- <a href="/">short.adyxax.org</a>
+ <a href="/"><img alt="short.adyxax.org" src="/static/favicon.svg" height="50"></a>
<ul>
<li><a href="/about">About</a></li>
</ul>