forked from 42CTF/website
12 lines
363 B
Python
12 lines
363 B
Python
|
from django.contrib import sitemaps
|
||
|
from django.urls import reverse
|
||
|
|
||
|
class StaticViewSitemap(sitemaps.Sitemap):
|
||
|
priority = 0.5
|
||
|
changefreq = 'monthly'
|
||
|
i18n = True
|
||
|
def items(self):
|
||
|
return ['resources:about', 'resources:howToStart', 'resources:contribute', 'resources:becomeMember']
|
||
|
|
||
|
def location(self, item):
|
||
|
return reverse(item)
|