Any way to use with SSG?
Closed this issue · 4 comments
michaelmannucci commented
Is there anyway to use this with Statamic SSG to deploy to Netlify?
martyf commented
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.
martyf commented
Closed due to inactivity.
architchandra commented
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',
],
martyf commented
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.