~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlhelp/sitemap.py

  • Committer: kaputtnik
  • Date: 2019-07-28 12:24:55 UTC
  • mfrom: (544.1.4 sitemap_https)
  • Revision ID: kaputtnik-20190728122455-h5o7d1wvwkhwwt5c
use protocol https for urls in sitemap.xml

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from django.contrib.sitemaps import Sitemap
2
1
from wlhelp.models import Tribe, Building, Ware, Worker
3
 
 
4
 
 
5
 
class WlHelpTribeSitemap(Sitemap):
 
2
from mainpage.sitemaps import SitemapHTTPS
 
3
 
 
4
 
 
5
class WlHelpTribeSitemap(SitemapHTTPS):
6
6
    changefreq = 'yearly'
7
7
    priority = 0.5
8
8
 
13
13
        return '/encyclopedia/%s' % obj.name
14
14
 
15
15
 
16
 
class WlHelpBuildingSitemap(Sitemap):
 
16
class WlHelpBuildingSitemap(SitemapHTTPS):
17
17
    changefreq = 'yearly'
18
18
    priority = 0.5
19
19
 
24
24
        return '/encyclopedia/%s/buildings/%s' % (obj.tribe.name, obj.name)
25
25
 
26
26
 
27
 
class WlHelpWareSitemap(Sitemap):
 
27
class WlHelpWareSitemap(SitemapHTTPS):
28
28
    changefreq = 'yearly'
29
29
    priority = 0.5
30
30
 
35
35
        return '/encyclopedia/%s/wares/%s' % (obj.tribe.name, obj.name)
36
36
 
37
37
 
38
 
class WlHelpWorkerSitemap(Sitemap):
 
38
class WlHelpWorkerSitemap(SitemapHTTPS):
39
39
    changefreq = 'yearly'
40
40
    priority = 0.5
41
41