$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;
}