@@ -35,8 +35,4 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'google' => [
|
|
||||||
'site_verification' => env('GOOGLE_SITE_VERIFICATION'),
|
|
||||||
],
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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="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="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' }}">
|
<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="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.ico') }}" sizes="any">
|
||||||
<link rel="icon" href="{{ asset('favicon.svg') }}" type="image/svg+xml">
|
<link rel="icon" href="{{ asset('favicon.svg') }}" type="image/svg+xml">
|
||||||
<link rel="apple-touch-icon" href="{{ asset('apple-touch-icon.png') }}">
|
<link rel="apple-touch-icon" href="{{ asset('apple-touch-icon.png') }}">
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
{!! '<?xml version="1.0" encoding="UTF-8"?>' !!}
|
{!! '<?xml version="1.0" encoding="UTF-8"?>' !!}
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
@foreach($urls as $url)
|
@foreach ($urls as $url)
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ $url['loc'] }}</loc>
|
<loc>{{ $url['loc'] }}</loc>
|
||||||
<changefreq>weekly</changefreq>
|
<lastmod>{{ $url['lastmod'] }}</lastmod>
|
||||||
|
<changefreq>{{ $url['changefreq'] }}</changefreq>
|
||||||
<priority>{{ $url['priority'] }}</priority>
|
<priority>{{ $url['priority'] }}</priority>
|
||||||
</url>
|
</url>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|||||||
+9
-7
@@ -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::post('/submit-evidence', [EvidenceSubmissionController::class, 'store'])->name('evidence.store')->middleware('throttle:5,1');
|
||||||
|
|
||||||
Route::get('/sitemap.xml', function () {
|
Route::get('/sitemap.xml', function () {
|
||||||
|
$lastModified = now()->toDateString();
|
||||||
|
|
||||||
$urls = [
|
$urls = [
|
||||||
['loc' => route('home'), 'priority' => '1.0'],
|
['loc' => route('home'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '1.0'],
|
||||||
['loc' => route('valuations'), 'priority' => '0.9'],
|
['loc' => route('valuations'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.9'],
|
||||||
['loc' => route('park-holidays'), 'priority' => '0.9'],
|
['loc' => route('park-holidays'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.9'],
|
||||||
['loc' => route('owner-stories'), 'priority' => '0.8'],
|
['loc' => route('owner-stories'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '0.8'],
|
||||||
['loc' => route('rights'), 'priority' => '0.8'],
|
['loc' => route('rights'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.8'],
|
||||||
['loc' => route('evidence'), 'priority' => '0.8'],
|
['loc' => route('evidence'), 'lastmod' => $lastModified, 'changefreq' => 'weekly', 'priority' => '0.8'],
|
||||||
['loc' => route('evidence.create'), 'priority' => '0.6'],
|
['loc' => route('evidence.create'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.6'],
|
||||||
];
|
];
|
||||||
|
|
||||||
return response()->view('sitemap', compact('urls'))
|
return response()->view('sitemap', compact('urls'))
|
||||||
|
|||||||
Reference in New Issue
Block a user