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:
str4d
2013-01-04 12:38:49 +00:00
parent 3e8bd6eba3
commit a6a39fcb36
3 changed files with 105 additions and 0 deletions

View File

@ -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')