wagtail-nest / wagtail-bakery

A set of helpers for baking your Django Wagtail site out as flat files.
MIT License
182 stars 40 forks source link

Add SitemapBuildableView #48

Closed loicteixeira closed 7 months ago

loicteixeira commented 5 years ago

Rebase & continue #38. Fix #37.

loicteixeira commented 5 years ago

Currently, sitemaps are build at the correct location for single and multisites, however the content is incorrect for multisites.

Despite creating a request which is multisites aware, and that request being passed to the Sitemap object, it then use the paginator which doesn't seem to be multisite aware and return pages of the default site. There's self.items which would be site aware but isn't used? So it could possibly be an upstream issue? Or I'm just all mixed up in the sitemap logic.

I'll leave this aside for a bit so I can focus on releasing a new version of the package and then come back to this.