Skip to content

Commit

Permalink
Only set name if it is actually set in the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Thijmen committed Jun 24, 2024
1 parent c897aaa commit ab3b72b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions resources/views/layouts/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
@use('App\Models\InstanceSettings')
@php
$instanceSettings = InstanceSettings::first();
$name = null;
$instanceSettings = InstanceSettings::first();
$name = null;
if($instanceSettings) {
if($instanceSettings) {
$displayName = $instanceSettings->getTitleDisplayName();
if(strlen($displayName) > 0) {
$name = $instanceSettings->getTitleDisplayName() . ' ';
}
}
@endphp
<title>{{ $name }}{{ $title ?? 'Coolify' }}</title>
@env('local')
Expand Down

0 comments on commit ab3b72b

Please sign in to comment.