mitydigital/statamic-sitemapamic

Any way to use with SSG?

Closed this issue · 4 comments

Is there anyway to use this with Statamic SSG to deploy to Netlify?

Hi @michaelmannucci, have you added "sitemap.xml" to your config/statamic/ssg.php file?

'urls' => [
    'sitemap.xml'
],

We worked on a site that used the v1 branch and was deployed through Netlify, but don't work on that site source any more, but this worked for us for this site.

Let me know how you go.

Closed due to inactivity.

This worked for me.

Had to manually add routes for collection-based sitemaps as well (mode => multiple):

'urls' => [
        'sitemap.xml',
        'sitemap_pages.xml',
        'sitemap_articles.xml',
        'sitemap_blog.xml',
],

Thanks for the note @architchandra: I've added some info about SSG to the docs for both Sitemapamic and Feedamic, as this applies to both.