mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 02:56:29 +00:00
parent
f28d05fc44
commit
372ce7867c
3 changed files with 17 additions and 1 deletions
7
public/md/feature.md
Normal file
7
public/md/feature.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Unsupported feature
|
||||||
|
|
||||||
|
Nitter doesn't support this feature yet, but it might in the future.
|
||||||
|
You can check for an issue and open one if needed here:
|
||||||
|
<https://github.com/zedeus/nitter/issues>
|
||||||
|
|
||||||
|
To find out more about the Nitter project, see the [About page](/about).
|
|
@ -30,6 +30,9 @@ routes:
|
||||||
get "/about":
|
get "/about":
|
||||||
resp renderMain(renderAbout(), request, cfg.title)
|
resp renderMain(renderAbout(), request, cfg.title)
|
||||||
|
|
||||||
|
get "/about/feature":
|
||||||
|
resp renderMain(renderFeature(), request, cfg.title)
|
||||||
|
|
||||||
extend preferences, ""
|
extend preferences, ""
|
||||||
extend rss, ""
|
extend rss, ""
|
||||||
extend search, ""
|
extend search, ""
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
import karax/[karaxdsl, vdom]
|
import karax/[karaxdsl, vdom]
|
||||||
import markdown
|
import markdown
|
||||||
|
|
||||||
let about = markdown(readFile("public/md/about.md"))
|
let
|
||||||
|
about = markdown(readFile("public/md/about.md"))
|
||||||
|
feature = markdown(readFile("public/md/feature.md"))
|
||||||
|
|
||||||
proc renderAbout*(): VNode =
|
proc renderAbout*(): VNode =
|
||||||
buildHtml(tdiv(class="overlay-panel")):
|
buildHtml(tdiv(class="overlay-panel")):
|
||||||
verbatim about
|
verbatim about
|
||||||
|
|
||||||
|
proc renderFeature*(): VNode =
|
||||||
|
buildHtml(tdiv(class="overlay-panel")):
|
||||||
|
verbatim feature
|
||||||
|
|
Loading…
Reference in a new issue