@php $sitemap = $seo['sitemap']; $stats = $seo['sitemapStats'] ?? []; @endphp

Generated sitemaps

The sitemap rebuilds automatically when products, collections, pages, posts or policies change. @if ($sitemap['last_generated_at']) Last manual regeneration {{ \Illuminate\Support\Carbon::parse($sitemap['last_generated_at'])->diffForHumans() }}. @endif

@csrf
@unless ($seo['indexingAllowed'])
Search engine indexing is turned off under Storefront, so robots.txt currently blocks all crawlers.
@endunless
@include('admin.settings.partials.seo-url-row', ['label' => 'Sitemap index', 'url' => route('sitemap')]) @if ($sitemap['html_sitemap_enabled']) @include('admin.settings.partials.seo-url-row', ['label' => 'HTML page', 'url' => route('sitemap.html')]) @endif
@foreach (\App\Domain\SEO\Services\SitemapBuilder::TYPES as $type => $label) {{ $label }} {{ number_format($stats[$type] ?? 0) }} /sitemaps/{{ $type }}.xml @endforeach
@csrf @method('PUT')

What to include

@foreach ([ 'include_products' => 'Products', 'include_collections' => 'Collections (with active products)', 'include_pages' => 'CMS pages', 'include_posts' => 'Blog posts', 'include_blog_categories' => 'Blog categories', 'include_policies' => 'Policies', 'include_images' => 'Product images (image sitemap)', 'html_sitemap_enabled' => 'Public HTML sitemap page at /sitemap', ] as $key => $label) @endforeach

Draft, unlisted and noindex content is always left out.

Custom URLs