M2: 主题系统(sablog经典+modern简约)+ 前台全部页面 + 老 URL 301 兼容 + markdown 双份导入
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{!! $xmlDeclaration !!}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>{{ route('home') }}</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>{{ route('archives') }}</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>{{ route('tags') }}</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.4</priority>
|
||||
</url>
|
||||
@foreach($posts as $post)
|
||||
<url>
|
||||
<loc>{{ route('posts.show', $post->slug ?: $post->id) }}</loc>
|
||||
<lastmod>{{ $post->updated_at?->toAtomString() }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
@endforeach
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user