22 lines
913 B
PHP
22 lines
913 B
PHP
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
|
||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
||
|
||
@foreach($animes as $anime)
|
||
<url>
|
||
<loc>{{ $domain }}/anime/{{ $anime->slug }}</loc>
|
||
<priority>{{ $anime->rating >= 8 ? '0.9' : ($anime->rating >= 6 ? '0.8' : '0.7') }}</priority>
|
||
<changefreq>weekly</changefreq>
|
||
<lastmod>{{ $anime->updated_at?->toAtomString() ?? now()->toAtomString() }}</lastmod>
|
||
@if($anime->cover_image_url)
|
||
<image:image>
|
||
<image:loc>{{ $anime->cover_image_url }}</image:loc>
|
||
<image:title>{{ htmlspecialchars($anime->title . ' İzle - Türkçe Altyazılı') }}</image:title>
|
||
<image:caption>{{ htmlspecialchars($anime->title) }} anime Türkçe altyazılı ücretsiz izle — Animexe</image:caption>
|
||
</image:image>
|
||
@endif
|
||
</url>
|
||
@endforeach
|
||
|
||
</urlset>
|