1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-04-14 01:32:32 -04:00

Add config options to enable subset of RSS feeds

Fixes #1363
This commit is contained in:
Zed
2026-02-11 23:49:50 +01:00
parent dcec1eb458
commit 05b6dd2a43
8 changed files with 60 additions and 26 deletions

View File

@@ -29,7 +29,7 @@ proc renderNavbar(cfg: Config; req: Request; rss, canonical: string): VNode =
tdiv(class="nav-item right"):
icon "search", title="Search", href="/search"
if cfg.enableRss and rss.len > 0:
if rss.len > 0:
icon "rss", title="RSS Feed", href=rss
icon "bird", title="Open in X", href=canonical
a(href="https://liberapay.com/zedeus"): verbatim lp
@@ -67,7 +67,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; req: Request; titleText=""; desc="";
if alternate.len > 0:
link(rel="alternate", href=alternate, title="View on X")
if cfg.enableRss and rss.len > 0:
if rss.len > 0:
link(rel="alternate", type="application/rss+xml", href=rss, title="RSS feed")
if prefs.hlsPlayback: