]> git.localhorst.tv Git - alttp.git/blobdiff - resources/views/sitemap.blade.php
sitemap xml controller
[alttp.git] / resources / views / sitemap.blade.php
diff --git a/resources/views/sitemap.blade.php b/resources/views/sitemap.blade.php
new file mode 100644 (file)
index 0000000..f9cf5bf
--- /dev/null
@@ -0,0 +1,11 @@
+<?php echo '<?xml version="1.0" encoding="UTF-8"?>', "\n"; ?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+@foreach ($urls as $url)
+       <url>
+               <loc>{{ url($url->path) }}</loc>
+               <lastmod>{{ $url->lastmod->tz('UTC')->toAtomString() }}</lastmod>
+               <changefreq>{{ $url->changefreq }}</changefreq>
+               <priority>{{ $url->priority }}</priority>
+       </url>
+@endforeach
+</urlset>