X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=app%2FHttp%2FControllers%2FSitemapXmlController.php;fp=app%2FHttp%2FControllers%2FSitemapXmlController.php;h=1bd7749589507c3b5aad322bb2b914848a3cc097;hb=6c51a1601e74bc822ccafe984d525d0e9a35ca28;hp=ebb7b621a15c64230504bcdb70d4f748b1071dd5;hpb=0407853837c323428d122a027fbdb574025824db;p=alttp.git diff --git a/app/Http/Controllers/SitemapXmlController.php b/app/Http/Controllers/SitemapXmlController.php index ebb7b62..1bd7749 100644 --- a/app/Http/Controllers/SitemapXmlController.php +++ b/app/Http/Controllers/SitemapXmlController.php @@ -22,11 +22,18 @@ class SitemapXmlController extends Controller $urls[] = $url; } + $url = new SitemapUrl(); + $url->path = '/tech'; + $url->lastmod = Technique::latest()->first()->created_at; + $url->changefreq = 'monthly'; + $url->priority = 0.5; + $urls[] = $url; + foreach (Technique::where('index', true)->get() as $tech) { $url = new SitemapUrl(); $url->path = '/tech/'.rawurlencode($tech->name); $url->lastmod = $tech->updated_at ? $tech->updated_at : ($tech->created_at ? $tech->created_at : now()); - $url->changefreq = 'monthly'; + $url->changefreq = 'never'; $url->priority = $tech->priority; $urls[] = $url; }