Skip to content

Commit

Permalink
seo
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rn0 committed May 21, 2024
1 parent b6206a5 commit d0b4256
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ DISCORD_REDIRECT_URL=
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_SCOPE=

## SEO

SEO_DESCRIPTION
SEO_KEYWORDS=
2 changes: 1 addition & 1 deletion src/app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function boot()

seo()
->site(config('app.name'))
->description(default: config('app.tagline'))
->description(default: config('app.seo_description'))
->image(default: fn () => config('app.url') . config('app.logo'))
->twitterSite('@LanOps');
}
Expand Down
3 changes: 3 additions & 0 deletions src/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
'discord_client_id' => env('DISCORD_CLIENT_ID', ''),
'discord_client_secret' => env('DISCORD_CLIENT_SECRET', ''),
'discord_scope' => env('DISCORD_SCOPE', 'identify'),

'seo_description' => env('SEO_DESCRIPTION', ''),
'seo_keywords' => env('SEO_KEYWORDS', 'UK Lan, LAN, LAN Party, South Yorkshire, Gaming, lanops, UK, community'),


/*
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/layouts/default.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{ config('app.tagline') }} | {{ config('app.name') }}
@endif
</title>
<meta name="keywords" content="UK Lan, LAN, LAN Party, South Yorkshire, Gaming, lanops, UK, community"/>
<meta name="keywords" content="{{ config('app.seo_keywords') }}"/>
<x-seo::meta />
</head>
<body class="full-height">
Expand Down

0 comments on commit d0b4256

Please sign in to comment.