feat(wiki): configurable site title via WIKI_SITE_TITLE

The site title (top-left + browser tab) was the hardcoded "Wiki.js". Drive it
from a deployment variable instead; the config job sets site.title from
WIKI_SITE_TITLE (default "Wiki"), set here to wiki.axion1337.chat.
This commit is contained in:
Thore Cimbal
2026-08-13 12:00:00 +00:00
parent 5d7301c4d2
commit 32ca547be3
2 changed files with 10 additions and 4 deletions
+7 -4
View File
@@ -196,10 +196,13 @@ def ensure_theming(jwt: str):
'injectBody:$b){responseResult{succeeded message}}}}',
jwt, {"t": tc["theme"], "i": tc["iconset"], "d": True, "tp": tc["tocPosition"],
"c": tc["injectCSS"], "h": tc["injectHead"], "b": tc["injectBody"]})
gql('mutation($bg:String!,$logo:String!){site{updateConfig(authLoginBgUrl:$bg,logoUrl:$logo)'
'{responseResult{succeeded message}}}}',
jwt, {"bg": bg, "logo": logo})
log("Theming gesetzt (Dark-Default, Logo + Login-Hintergrund aus gemounteten Assets)")
# Site-Titel (oben links / Browser-Tab) aus der Deployment-Variable — nicht mehr
# das hartkodierte "Wiki.js". Reproduzierbar über WIKI_SITE_TITLE.
title = os.environ.get("WIKI_SITE_TITLE", "Wiki").strip() or "Wiki"
gql('mutation($bg:String!,$logo:String!,$ttl:String!){site{updateConfig('
'authLoginBgUrl:$bg,logoUrl:$logo,title:$ttl){responseResult{succeeded message}}}}',
jwt, {"bg": bg, "logo": logo, "ttl": title})
log(f"Theming gesetzt (Titel '{title}', Dark-Default, Logo + Hintergrund aus Mounts)")
def ensure_git_storage(jwt: str):