diff --git a/.env.example b/.env.example index c0660ea..dc36c57 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ APP_NAME=Laravel APP_ENV=local APP_KEY= APP_DEBUG=true -APP_URL=http://localhost +APP_URL=https://lorekeepers.games APP_LOCALE=en APP_FALLBACK_LOCALE=en diff --git a/app/Console/Commands/GenerateSitemapCommand.php b/app/Console/Commands/GenerateSitemapCommand.php index ce24b50..8373ce9 100644 --- a/app/Console/Commands/GenerateSitemapCommand.php +++ b/app/Console/Commands/GenerateSitemapCommand.php @@ -5,6 +5,7 @@ namespace App\Console\Commands; use App\Models\Game; use App\Models\User; use Illuminate\Console\Command; +use Illuminate\Support\Facades\URL; use Spatie\Sitemap\Sitemap; use Spatie\Sitemap\Tags\Url; @@ -15,6 +16,7 @@ class GenerateSitemapCommand extends Command public function handle(): int { + URL::forceScheme('https'); $sitemap = Sitemap::create() ->add(Url::create('/')->setPriority(1.0)->setChangeFrequency(Url::CHANGE_FREQUENCY_DAILY)) ->add(Url::create('/games')->setPriority(0.9)->setChangeFrequency(Url::CHANGE_FREQUENCY_DAILY)) diff --git a/resources/views/games/index.blade.php b/resources/views/games/index.blade.php index 94419d1..964d6f8 100644 --- a/resources/views/games/index.blade.php +++ b/resources/views/games/index.blade.php @@ -1,12 +1,22 @@ @extends('layouts.app') -@section('title', 'Browse Games — LoreKeepers') -@section('description', 'Browse and discover video games. Filter by genre, platform, and year. Find your next favorite game on LoreKeepers.') +@section('title', 'Browse Video Games — Filter by Genre, Platform & Year | LoreKeepers') +@section('description', 'Browse our full library of video games. Filter by genre, platform, release year, and sort by rating or popularity. Find your next favorite game.') @section('canonical', route('games.index')) +@section('og_description', 'Browse our full library of video games. Filter by genre, platform, release year, and sort by rating or popularity. Find your next favorite game.') @if($shouldNoindex ?? false) @section('robots', 'noindex,follow') @endif +@push('head_links') +@if($games->currentPage() > 1) + +@endif +@if($games->hasMorePages()) + +@endif +@endpush + @section('content')