mirror of
https://github.com/zedeus/nitter
synced 2024-11-15 22:46:52 +01:00
Fixes hardcoded href for OpenSearch xml
This commit is contained in:
parent
8bffb61e68
commit
39d824787a
@ -35,6 +35,12 @@ proc renderHead*(prefs: Prefs; cfg: Config; titleText=""; desc=""; video="";
|
||||
elif images.len > 0: "photo"
|
||||
else: "article"
|
||||
|
||||
var opensearchUrl = ""
|
||||
if cfg.useHttps:
|
||||
opensearchUrl = "https://" & cfg.hostname & "/opensearch"
|
||||
else:
|
||||
opensearchUrl = "http://" & cfg.hostname & "/opensearch"
|
||||
|
||||
buildHtml(head):
|
||||
link(rel="stylesheet", `type`="text/css", href="/css/style.css")
|
||||
link(rel="stylesheet", `type`="text/css", href="/css/fontello.css")
|
||||
@ -44,7 +50,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; titleText=""; desc=""; video="";
|
||||
link(rel="manifest", href="/site.webmanifest")
|
||||
link(rel="mask-icon", href="/safari-pinned-tab.svg", color="#ff6c60")
|
||||
link(rel="search", type="application/opensearchdescription+xml", title=cfg.title,
|
||||
href="http://localhost:8080/opensearch")
|
||||
href=opensearchUrl)
|
||||
|
||||
if prefs.hlsPlayback:
|
||||
script(src="/js/hls.light.min.js")
|
||||
|
Loading…
Reference in New Issue
Block a user