mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 11:06:30 +00:00
parent
ebb89edef6
commit
a583ad6854
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
import karax/[karaxdsl, vdom]
|
import karax/[karaxdsl, vdom]
|
||||||
import markdown
|
import markdown
|
||||||
|
|
||||||
|
const
|
||||||
|
hash = staticExec("git log -1 --format=\"%h\"")
|
||||||
|
link = "https://github.com/zedeus/nitter/commit/" & hash
|
||||||
|
|
||||||
let
|
let
|
||||||
about = markdown(readFile("public/md/about.md"))
|
about = markdown(readFile("public/md/about.md"))
|
||||||
feature = markdown(readFile("public/md/feature.md"))
|
feature = markdown(readFile("public/md/feature.md"))
|
||||||
|
@ -8,6 +12,10 @@ let
|
||||||
proc renderAbout*(): VNode =
|
proc renderAbout*(): VNode =
|
||||||
buildHtml(tdiv(class="overlay-panel")):
|
buildHtml(tdiv(class="overlay-panel")):
|
||||||
verbatim about
|
verbatim about
|
||||||
|
h2: text "Instance info"
|
||||||
|
p:
|
||||||
|
text "Commit "
|
||||||
|
a(href=link): text hash
|
||||||
|
|
||||||
proc renderFeature*(): VNode =
|
proc renderFeature*(): VNode =
|
||||||
buildHtml(tdiv(class="overlay-panel")):
|
buildHtml(tdiv(class="overlay-panel")):
|
||||||
|
|
Loading…
Reference in a new issue