sass cleanup

This commit is contained in:
Zed
2019-09-13 19:52:05 +02:00
parent 0c1b8b0190
commit a687188dd1
6 changed files with 26 additions and 32 deletions

View File

@@ -6,14 +6,14 @@ import ../utils, ../types
const doctype = "<!DOCTYPE html>\n"
proc renderNavbar*(title, path, rss: string): VNode =
buildHtml(nav(id="nav", class="nav-bar container")):
buildHtml(nav):
tdiv(class="inner-nav"):
tdiv(class="item"):
tdiv(class="nav-item"):
a(class="site-name", href="/"): text title
a(href="/"): img(class="site-logo", src="/logo.png")
tdiv(class="item right"):
tdiv(class="nav-item right"):
if rss.len > 0:
icon "rss", title="RSS Feed", href=rss
icon "info-circled", title="About", href="/about"
@@ -55,7 +55,7 @@ proc renderMain*(body: VNode; prefs: Prefs; title="Nitter"; titleText=""; desc="
body:
renderNavbar(title, path, rss)
tdiv(id="content", class="container"):
tdiv(class="container"):
body
result = doctype & $node