first commit
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>{{ route('blog.index') }}</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>{{ route('tools.index') }}</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
@foreach ($categories as $category)
|
||||
<url>
|
||||
<loc>{{ route('blog.category', $category) }}</loc>
|
||||
<lastmod>{{ $category->updated_at->toAtomString() }}</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
@foreach ($tags as $tag)
|
||||
<url>
|
||||
<loc>{{ route('blog.tag', $tag) }}</loc>
|
||||
<lastmod>{{ $tag->updated_at->toAtomString() }}</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
@foreach ($posts as $post)
|
||||
<url>
|
||||
<loc>{{ route('blog.show', $post) }}</loc>
|
||||
<lastmod>{{ $post->updated_at->toAtomString() }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
@foreach ($toolCategories as $toolCategory)
|
||||
<url>
|
||||
<loc>{{ route('tools.category', $toolCategory) }}</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
@foreach ($tools as $tool)
|
||||
<url>
|
||||
<loc>{{ route('tools.show', $tool) }}</loc>
|
||||
<lastmod>{{ $tool->updated_at->toAtomString() }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
@foreach ($pages as $page)
|
||||
<url>
|
||||
<loc>{{ route('pages.show', $page) }}</loc>
|
||||
<lastmod>{{ $page->updated_at->toAtomString() }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user