1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-08 04:55:37 -05:00

Add "not supported" page at /about/feature

Fixes #42
This commit is contained in:
Zed
2019-09-23 01:55:02 +02:00
parent f28d05fc44
commit 372ce7867c
3 changed files with 17 additions and 1 deletions

View File

@@ -30,6 +30,9 @@ routes:
get "/about":
resp renderMain(renderAbout(), request, cfg.title)
get "/about/feature":
resp renderMain(renderFeature(), request, cfg.title)
extend preferences, ""
extend rss, ""
extend search, ""

View File

@@ -1,8 +1,14 @@
import karax/[karaxdsl, vdom]
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 =
buildHtml(tdiv(class="overlay-panel")):
verbatim about
proc renderFeature*(): VNode =
buildHtml(tdiv(class="overlay-panel")):
verbatim feature