fix about page and support link
This commit is contained in:
parent
23c5641d2a
commit
ccf7170a98
2 changed files with 5 additions and 2 deletions
|
@ -5,7 +5,7 @@ import karax/[karaxdsl, vdom]
|
|||
const
|
||||
date = staticExec("git show -s --format=\"%cd\" --date=format:\"%Y.%m.%d\"")
|
||||
hash = staticExec("git show -s --format=\"%h\"")
|
||||
link = "https://github.com/zedeus/nitter/commit/" & hash
|
||||
link = "https://git.nolog.cz/NoLog.cz/nitter/commit/" & hash
|
||||
version = &"{date}-{hash}"
|
||||
|
||||
var aboutHtml: string
|
||||
|
@ -21,6 +21,9 @@ proc renderAbout*(): VNode =
|
|||
buildHtml(tdiv(class="overlay-panel")):
|
||||
verbatim aboutHtml
|
||||
h2: text "Instance info"
|
||||
p:
|
||||
text "This Nitter instance is run by the "
|
||||
a(href="https://nolog.cz/en"): text "NoLog collective"
|
||||
p:
|
||||
text "Version "
|
||||
a(href=link): text version
|
||||
|
|
|
@ -33,7 +33,7 @@ proc renderNavbar(cfg: Config; req: Request; rss, canonical: string): VNode =
|
|||
icon "rss-feed", title="RSS Feed", href=rss
|
||||
icon "bird", title="Open in Twitter", href=canonical
|
||||
a(href="https://liberapay.com/zedeus"): verbatim lp
|
||||
icon "heart", title="NoLog.cz", href="https://nolog.cz/support"
|
||||
icon "heart", title="NoLog.cz", href="https://nolog.cz/en/support"
|
||||
icon "info", title="About", href="/about"
|
||||
icon "cog", title="Preferences", href=("/settings?referer=" & encodeUrl(path))
|
||||
|
||||
|
|
Loading…
Reference in a new issue