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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user