Add sitemap generation
Initially the rel="alternate" hreflang="xx" links in the sitemap caused the size of the file to increase exponentially as additional languages were added. The current implementation has a single sitemap.xml for each language, with a sitemap_index.xml at the root.
This commit is contained in:
@ -68,3 +68,6 @@ url('/<string:f>.html', 'legacy.legacy_show')
|
||||
url('/hosts.txt', 'views.hosts')
|
||||
url('/robots.txt', 'views.robots')
|
||||
url('/favicon.ico', 'views.favicon')
|
||||
|
||||
url('/sitemap_index.xml', 'sitemap.render_sitemap_index')
|
||||
url('/<lang:lang>/sitemap.xml', 'sitemap.render_sitemap')
|
||||
|
Reference in New Issue
Block a user