Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SitemapBuildableView #37

Open
NDevox opened this issue Oct 13, 2018 · 0 comments
Open

Add SitemapBuildableView #37

NDevox opened this issue Oct 13, 2018 · 0 comments

Comments

@NDevox
Copy link

NDevox commented Oct 13, 2018

Sites need a sitemap and it'd be great to be able to generate this as part of the static build process.

I'm currently putting up a PR to answer this issue.

stevejalim pushed a commit to mdn/developer-portal that referenced this issue Nov 24, 2019
Key changes:
* Add XML sitemap generation via django.contrib.sitemap
* Wire it into the URLconf
* Expose it in the <head> of the base template
* Support rendering out the XML sitemap when building a static site - note this only works for the default site due to an issue in Wagtail (Once wagtail-nest/wagtail-bakery#37 is resolved we can ditch our custom code and use wagtail-bakery for this, potentially)

WIP on adding sitemaps - had to add the EXPORTED_SITE_URL to the .env to make it work
stevejalim pushed a commit to mdn/developer-portal that referenced this issue Nov 27, 2019
* 746: Add an XML sitemap

Key changes:
* Add XML sitemap generation via django.contrib.sitemap
* Wire it into the URLconf
* Expose it in the <head> of the base template
* Support rendering out the XML sitemap when building a static site - note this only works for the default site due to an issue in Wagtail (Once wagtail-nest/wagtail-bakery#37 is resolved we can ditch our custom code and use wagtail-bakery for this, potentially)

WIP on adding sitemaps - had to add the EXPORTED_SITE_URL to the .env to make it work

* 746: Add tests for sitemap generation

Not testing Django code, just testing the code that calls it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants