~widelands-dev/widelands-website/wlwebsite_docker

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


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

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

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