initial commmit google
tests / ci (push) Canceled after 0s

This commit is contained in:
Mark Gregory
2026-09-30 15:26:18 +01:00
parent 56234e2c9f
commit 0c70b16433
4 changed files with 13 additions and 14 deletions
-4
View File
@@ -35,8 +35,4 @@ return [
],
],
'google' => [
'site_verification' => env('GOOGLE_SITE_VERIFICATION'),
],
];
+1 -1
View File
@@ -7,8 +7,8 @@
<meta name="description" content="@yield('description', 'Independent information for UK holiday park owners about valuations, depreciation, pitch fees, resale, ownership rights and owner experiences.')">
<meta name="robots" content="{{ app()->environment('production') ? 'index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1' : 'noindex,nofollow,noarchive' }}">
<meta name="googlebot" content="{{ app()->environment('production') ? 'index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1' : 'noindex,nofollow,noarchive' }}">
@if(config('services.google.site_verification'))<meta name="google-site-verification" content="{{ config('services.google.site_verification') }}">@endif
<link rel="canonical" href="{{ url()->current() }}">
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ route('sitemap') }}">
<link rel="icon" href="{{ asset('favicon.ico') }}" sizes="any">
<link rel="icon" href="{{ asset('favicon.svg') }}" type="image/svg+xml">
<link rel="apple-touch-icon" href="{{ asset('apple-touch-icon.png') }}">
+3 -2
View File
@@ -1,9 +1,10 @@
{!! '<?xml version="1.0" encoding="UTF-8"?>' !!}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@foreach($urls as $url)
@foreach ($urls as $url)
<url>
<loc>{{ $url['loc'] }}</loc>
<changefreq>weekly</changefreq>
<lastmod>{{ $url['lastmod'] }}</lastmod>
<changefreq>{{ $url['changefreq'] }}</changefreq>
<priority>{{ $url['priority'] }}</priority>
</url>
@endforeach
+9 -7
View File
@@ -13,14 +13,16 @@ Route::get('/submit-evidence', [EvidenceSubmissionController::class, 'create'])-
Route::post('/submit-evidence', [EvidenceSubmissionController::class, 'store'])->name('evidence.store')->middleware('throttle:5,1');
Route::get('/sitemap.xml', function () {
$lastModified = now()->toDateString();
$urls = [
['loc' => route('home'), 'priority' => '1.0'],
['loc' => route('valuations'), 'priority' => '0.9'],
['loc' => route('park-holidays'), 'priority' => '0.9'],
['loc' => route('owner-stories'), 'priority' => '0.8'],
['loc' => route('rights'), 'priority' => '0.8'],
['loc' => route('evidence'), 'priority' => '0.8'],
['loc' => route('evidence.create'), 'priority' => '0.6'],
['loc' => route('home'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '1.0'],
['loc' => route('valuations'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.9'],
['loc' => route('park-holidays'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.9'],
['loc' => route('owner-stories'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '0.8'],
['loc' => route('rights'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.8'],
['loc' => route('evidence'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '0.8'],
['loc' => route('evidence.create'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.6'],
];
return response()->view('sitemap', compact('urls'))