SEO additions
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{!! '<?xml version="1.0" encoding="UTF-8"?>' !!}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
@foreach($static as $item)
|
||||
<url>
|
||||
<loc>{{ route($item['route']) }}</loc>
|
||||
<changefreq>{{ $item['frequency'] }}</changefreq>
|
||||
<priority>{{ $item['priority'] }}</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
@foreach($pages as $page)
|
||||
<url>
|
||||
<loc>{{ route('cms.show', $page->slug) }}</loc>
|
||||
<lastmod>{{ $page->updated_at->toAtomString() }}</lastmod>
|
||||
<changefreq>{{ $page->sitemap_change_frequency }}</changefreq>
|
||||
<priority>{{ number_format((float) $page->sitemap_priority, 1, '.', '') }}</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user