custom navbar

This commit is contained in:
2026-05-24 16:09:02 +02:00
parent cdd415a52f
commit a5e79cca0c
3 changed files with 4 additions and 2 deletions

View File

@@ -56,6 +56,7 @@
"default_layout": "legacy", "default_layout": "legacy",
"custom_favicon": "/s/img/favicon.gif", "custom_favicon": "/s/img/favicon.gif",
"custom_brand_image": [], "custom_brand_image": [],
"custom_navbar_brand_text": "",
"show_koepfe": false, "show_koepfe": false,
"koepfe": [], "koepfe": [],
"enable_global_chat": true, "enable_global_chat": true,

View File

@@ -1105,6 +1105,7 @@ process.on('uncaughtException', err => {
meme_creator: !!cfg.websrv.meme_creator, meme_creator: !!cfg.websrv.meme_creator,
custom_favicon: cfg.websrv.custom_favicon || "", custom_favicon: cfg.websrv.custom_favicon || "",
custom_brand_image: Array.isArray(cfg.websrv.custom_brand_image) ? cfg.websrv.custom_brand_image[0] : (cfg.websrv.custom_brand_image || ""), custom_brand_image: Array.isArray(cfg.websrv.custom_brand_image) ? cfg.websrv.custom_brand_image[0] : (cfg.websrv.custom_brand_image || ""),
custom_navbar_brand_text: cfg.websrv.custom_navbar_brand_text || "",
site_description: cfg.websrv.description || "The webs dumpster", site_description: cfg.websrv.description || "The webs dumpster",
enable_nsfl: !!cfg.enable_nsfl, enable_nsfl: !!cfg.enable_nsfl,
nsfl_tag_id: cfg.nsfl_tag_id || 3, nsfl_tag_id: cfg.nsfl_tag_id || 3,

View File

@@ -7,7 +7,7 @@
@if(custom_brand_image) @if(custom_brand_image)
<img id="navbar-logo" src="{{ custom_brand_image }}" alt="{{ domain }}" style="max-height: 40px; vertical-align: middle; max-width: 180px; width: initial;"> <img id="navbar-logo" src="{{ custom_brand_image }}" alt="{{ domain }}" style="max-height: 40px; vertical-align: middle; max-width: 180px; width: initial;">
@else @else
<span class="f0ck">{{ domain.split('.')[0] }}</span> <span class="f0ck">{{ custom_navbar_brand_text || domain }}</span>
@endif @endif
</a> </a>
@@ -166,7 +166,7 @@
@if(custom_brand_image) @if(custom_brand_image)
<img id="navbar-logo" src="{{ custom_brand_image }}" alt="{{ domain }}" style="max-height: 40px; vertical-align: middle; max-width: 180px; width: auto;"> <img id="navbar-logo" src="{{ custom_brand_image }}" alt="{{ domain }}" style="max-height: 40px; vertical-align: middle; max-width: 180px; width: auto;">
@else @else
<span class="f0ck">{{ domain.split('.')[0] }}</span> <span class="f0ck">{{ custom_navbar_brand_text || domain.split('.')[0] }}</span>
@endif @endif
</a> </a>