Initial commit
This commit is contained in:
11
resources/views/sitemap/postcategory.blade.php
Normal file
11
resources/views/sitemap/postcategory.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
@if (count($categories) > 0)
|
||||
@foreach ($categories as $category)
|
||||
<url>
|
||||
<loc>{{ url('category/' . $category->slug).'/' }}</loc>
|
||||
<lastmod>{{ $category->updated_at->setTimezone('Asia/Tehran')->toAtomString() }}</lastmod>
|
||||
|
||||
</url>
|
||||
@endforeach
|
||||
@endif
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user