~widelands-dev/widelands-website/django_staticfiles

429.3.3 by franku
added wlhelp, mainpage, changelog and docs
1
from django.contrib.sitemaps import Sitemap
489.1.13 by franku
django.conf.urlresolvers -> django.urls
2
from django.urls import reverse
429.3.3 by franku
added wlhelp, mainpage, changelog and docs
3
429.3.13 by franku
consistent use of 2 blank lines after imports
4
429.3.3 by franku
added wlhelp, mainpage, changelog and docs
5
class StaticViewSitemap(Sitemap):
6
    priority = 0.5
7
    changefreq = 'yearly'
8
9
    def items(self):
429.3.4 by franku
added sphinxdoc genindex; cleanups
10
        return ['mainpage', 'changelog']
429.3.3 by franku
added wlhelp, mainpage, changelog and docs
11
12
    def location(self, item):
13
        return reverse(item)