fixed sitemap bug

pull/49/head
A1Gard 1 month ago
parent 6cbeb91924
commit cb1254951f

@ -12,7 +12,7 @@
<loc>{{route('client.attachments')}}</loc>
<lastmod>{{\App\Models\Attachment::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>2</priority>
<priority>0.7</priority>
</url>
@endif
@foreach(\App\Models\Attachment::where('is_fillable',1)->orderBy('id')->get(['slug','updated_at']) as $item)
@ -21,7 +21,7 @@
<loc>{{route('client.attachment',$item->slug)}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@if(config('app.xlang.active'))
@ -34,7 +34,7 @@
<loc>{{route('client.attachments')}}/{{$lang}}</loc>
<lastmod>{{\App\Models\Attachment::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>2</priority>
<priority>0.7</priority>
</url>
@endif
@foreach(\App\Models\Attachment::where('is_fillable',1)->whereLocale('title',$lang)->orderBy('id')->get(['slug','updated_at','title']) as $item)
@ -43,7 +43,7 @@
<loc>{{$item->webUrl()}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@endforeach

@ -11,7 +11,7 @@
<loc>{{route('client.clips')}}</loc>
<lastmod>{{\App\Models\Clip::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>2</priority>
<priority>0.7</priority>
</url>
@endif
@foreach(\App\Models\Clip::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)
@ -19,7 +19,7 @@
<loc>{{route('client.clip',$item->slug)}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@if(config('app.xlang.active'))
@ -32,7 +32,7 @@
<loc>{{route('client.clips')}}/{{$lang}}</loc>
<lastmod>{{\App\Models\Clip::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>2</priority>
<priority>0.7</priority>
</url>
@endif
@foreach(\App\Models\Clip::where('status',1)->whereLocale('title',$lang)->orderBy('id')->get(['slug','updated_at','title']) as $item)
@ -41,7 +41,7 @@
<loc>{{$item->webUrl()}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@endforeach

@ -12,7 +12,7 @@
<loc>{{route('client.galleries')}}</loc>
<lastmod>{{\App\Models\Gallery::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>2</priority>
<priority>0.7</priority>
</url>
@endif
@foreach(\App\Models\Gallery::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)
@ -21,7 +21,7 @@
<loc>{{route('client.gallery',$item->slug)}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@if(config('app.xlang.active'))
@ -34,7 +34,7 @@
<loc>{{route('client.galleries')}}/{{$lang}}</loc>
<lastmod>{{\App\Models\Gallery::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>2</priority>
<priority>0.7</priority>
</url>
@endif
@foreach(\App\Models\Gallery::where('status',1)->whereLocale('title',$lang)->orderBy('id')->get(['slug','updated_at','title']) as $item)
@ -43,7 +43,7 @@
<loc>{{$item->webUrl()}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@endforeach

@ -12,7 +12,7 @@
<loc>{{route('client.group',$item->slug)}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@foreach(\App\Models\Category::orderBy('id')->get(['slug','updated_at']) as $item)
@ -21,7 +21,7 @@
<loc>{{route('client.category',$item->slug)}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@if(config('app.xlang.active'))
@ -34,7 +34,7 @@
<loc>{{$item->webUrl()}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@foreach(\App\Models\Category::whereLocale('name',$lang)->orderBy('id')->get(['slug','updated_at','name']) as $item)
@ -43,7 +43,7 @@
<loc>{{$item->webUrl()}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@endforeach

@ -21,7 +21,7 @@
<loc>{{route('client.post',$item->slug)}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@if(config('app.xlang.active'))
@ -44,7 +44,7 @@
<loc>{{$item->webUrl()}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@endforeach

@ -21,7 +21,7 @@
<loc>{{route('client.product',$item->slug)}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@if(config('app.xlang.active'))
@ -43,7 +43,7 @@
<loc>{{$item->webUrl()}}</loc>
<lastmod>{{$item->updated_at->tz('UTC')->toAtomString()}}</lastmod>
<changefreq>weekly</changefreq>
<priority>3</priority>
<priority>0.5</priority>
</url>
@endforeach
@endforeach

Loading…
Cancel
Save