~widelands-dev/widelands-website/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
from wiki.models import Article
from mainpage.sitemaps import SitemapHTTPS


class WikiSitemap(SitemapHTTPS):
    changefreq = 'yearly'
    priority = 0.5

    def items(self):
        return Article.objects.all()

    def lastmod(self, obj):
        return obj.last_update