diff --git a/public/css/fontello.css b/public/css/fontello.css
index 7da36ff..583ae79 100644
--- a/public/css/fontello.css
+++ b/public/css/fontello.css
@@ -1,11 +1,11 @@
@font-face {
font-family: 'fontello';
- src: url('/fonts/fontello.eot?33844470');
- src: url('/fonts/fontello.eot?33844470#iefix') format('embedded-opentype'),
- url('/fonts/fontello.woff2?33844470') format('woff2'),
- url('/fonts/fontello.woff?33844470') format('woff'),
- url('/fonts/fontello.ttf?33844470') format('truetype'),
- url('/fonts/fontello.svg?33844470#fontello') format('svg');
+ src: url('/fonts/fontello.eot?23617755');
+ src: url('/fonts/fontello.eot?23617755#iefix') format('embedded-opentype'),
+ url('/fonts/fontello.woff2?23617755') format('woff2'),
+ url('/fonts/fontello.woff?23617755') format('woff'),
+ url('/fonts/fontello.ttf?23617755') format('truetype'),
+ url('/fonts/fontello.svg?23617755#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
@@ -50,5 +50,6 @@
.icon-search:before { content: '\e80e'; } /* '' */
.icon-pin:before { content: '\e80f'; } /* '' */
.icon-cog:before { content: '\e812'; } /* '' */
-.icon-rss-feed:before { content: '\f143'; } /* '' */
+.icon-rss-feed:before { content: '\e813'; } /* '' */
+.icon-bird:before { content: '\f099'; } /* '' */
.icon-thumbs-up:before { content: '\f164'; } /* '' */
diff --git a/public/fonts/fontello.eot b/public/fonts/fontello.eot
index a3d11e8..e88f016 100644
Binary files a/public/fonts/fontello.eot and b/public/fonts/fontello.eot differ
diff --git a/public/fonts/fontello.svg b/public/fonts/fontello.svg
index 257ace5..fe483ef 100644
--- a/public/fonts/fontello.svg
+++ b/public/fonts/fontello.svg
@@ -38,11 +38,19 @@
+
+
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/fonts/fontello.ttf b/public/fonts/fontello.ttf
index 847494e..c85f39c 100644
Binary files a/public/fonts/fontello.ttf and b/public/fonts/fontello.ttf differ
diff --git a/public/fonts/fontello.woff b/public/fonts/fontello.woff
index a508a00..7ef7b1b 100644
Binary files a/public/fonts/fontello.woff and b/public/fonts/fontello.woff differ
diff --git a/public/fonts/fontello.woff2 b/public/fonts/fontello.woff2
index 52dff8d..9f995ca 100644
Binary files a/public/fonts/fontello.woff2 and b/public/fonts/fontello.woff2 differ
diff --git a/src/views/general.nim b/src/views/general.nim
index 5907c3d..e022e4b 100644
--- a/src/views/general.nim
+++ b/src/views/general.nim
@@ -1,4 +1,4 @@
-import uri
+import uri, strutils
import karax/[karaxdsl, vdom]
import renderutils
@@ -9,7 +9,9 @@ import jester
const doctype = "\n"
proc renderNavbar*(title, rss: string; req: Request): VNode =
- let path = $(parseUri(req.path) ? filterParams(req.params))
+ var path = $(parseUri(req.path) ? filterParams(req.params))
+ path = "https://twitter.com" & path.replace("after=", "max_position=")
+
buildHtml(nav):
tdiv(class="inner-nav"):
tdiv(class="nav-item"):
@@ -21,6 +23,8 @@ proc renderNavbar*(title, rss: string; req: Request): VNode =
icon "search", title="Search", href="/search"
if rss.len > 0:
icon "rss-feed", title="RSS Feed", href=rss
+ if "/search" notin path:
+ icon "bird", title="Open in Twitter", href=path
icon "info-circled", title="About", href="/about"
iconReferer "cog", "/settings", path, title="Preferences"