Only set name if it is actually set in the settings
This commit is contained in:
parent
c897aaafa7
commit
ab3b72bd1f
@ -18,12 +18,16 @@
|
|||||||
@use('App\Models\InstanceSettings')
|
@use('App\Models\InstanceSettings')
|
||||||
@php
|
@php
|
||||||
|
|
||||||
$instanceSettings = InstanceSettings::first();
|
$instanceSettings = InstanceSettings::first();
|
||||||
$name = null;
|
$name = null;
|
||||||
|
|
||||||
if($instanceSettings) {
|
if($instanceSettings) {
|
||||||
|
$displayName = $instanceSettings->getTitleDisplayName();
|
||||||
|
|
||||||
|
if(strlen($displayName) > 0) {
|
||||||
$name = $instanceSettings->getTitleDisplayName() . ' ';
|
$name = $instanceSettings->getTitleDisplayName() . ' ';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@endphp
|
@endphp
|
||||||
<title>{{ $name }}{{ $title ?? 'Coolify' }}</title>
|
<title>{{ $name }}{{ $title ?? 'Coolify' }}</title>
|
||||||
@env('local')
|
@env('local')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user