Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve page titles #118

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@
* Use this setting to provide a suffix that will be added after the title on each page.
* If you don't want a suffix, you should specify an empty string.
*/
'suffix' => ' - Quaver Tournaments',

// 'suffix' => ' - Quaver Tournaments',
'suffix' => '',
/**
* Use this setting to provide a custom title for the homepage. We will not use the suffix on the homepage,
* so you'll need to add the suffix manually if you want that. If set to null, we'll determine the title
* just like the other pages.
*/
'homepage_title' => null,
'homepage_title' => 'Quaver Tournaments',
],

'description' => [
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/mappools.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: __('Mappools') . " :: " . $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/rounds/show.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: $round->name . " :: " . $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/rules.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: $title . " :: " . $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/schedules.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: $title . " :: " . $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/show.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/staff/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: $title . " :: " . $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/stages/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: $title . " :: " . $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/teams/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: $title . " :: " . $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/tournaments/teams/show.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('web.tournaments.parts.base')

@push('seo')
{!! seo()->for($tournament) !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: $team->name . " :: " . $tournament->name)) !!}
@endpush

@push('cover')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/web/user/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@extends('web.layout.base')

@push('seo')
{!! seo() !!}
{!! seo()->for(new \RalphJSmit\Laravel\SEO\Support\SEOData(title: 'Settings')) !!}
@endpush

@section('content')
Expand Down
Loading