~widelands-dev/widelands-website/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.contrib.sitemaps import Sitemap
from django.urls import reverse


class SitemapHTTPS(Sitemap):
    protocol = 'https'


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

    def items(self):
        return ['mainpage', 'changelog']

    def location(self, item):
        return reverse(item)