]> git.localhorst.tv Git - alttp.git/blobdiff - resources/views/sitemap.blade.php
store map position in history
[alttp.git] / resources / views / sitemap.blade.php
index f9cf5bf3c8089c2f1cc9d46587aab606e1f13219..375be393fd11a0028a0e8eb9916d4807cf6b29be 100644 (file)
@@ -3,7 +3,9 @@
 @foreach ($urls as $url)
        <url>
                <loc>{{ url($url->path) }}</loc>
-               <lastmod>{{ $url->lastmod->tz('UTC')->toAtomString() }}</lastmod>
+               @if ($url->lastmod)
+                       <lastmod>{{ $url->lastmod->tz('UTC')->toAtomString() }}</lastmod>
+               @endif
                <changefreq>{{ $url->changefreq }}</changefreq>
                <priority>{{ $url->priority }}</priority>
        </url>