Skip to content

Commit

Permalink
Show Board Title in the page <title> head tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaail committed Sep 21, 2024
1 parent 6aa6079 commit 1751e0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/

'name' => env('APP_NAME', 'Laravel'),
'title' => env('APP_TITLE', 'Laravel'),

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Task Pilot</title>
<title>{{ isset($title) ? $title . ' - ' . config('app.title') : config('app.title') }}</title>
@livewireStyles
@vite('resources/assets/css/app.css')
</head>
Expand Down
1 change: 1 addition & 0 deletions resources/views/livewire/board/board-component.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<x-slot name="title">{{ $board->name }}</x-slot>
<div class="flex flex-col w-full px-4 pb-4">
<h1 class="p-4 bg-white/5 rounded text-lg font-semibold text-white">Board: {{ $board->name }}</h1>
{{-- Buckets --}}
Expand Down

0 comments on commit 1751e0b

Please sign in to comment.