[Backport] Make minor improvements over front sitemap
parent
3e1a52e350
commit
d24be5b5df
|
@ -25,10 +25,10 @@ from .base import Sitemap
|
||||||
class GenericSitemap(Sitemap):
|
class GenericSitemap(Sitemap):
|
||||||
def items(self):
|
def items(self):
|
||||||
return [
|
return [
|
||||||
{"url_key": "home", "changefreq": "monthly", "priority": 0.6},
|
{"url_key": "home", "changefreq": "monthly", "priority": 1},
|
||||||
{"url_key": "login", "changefreq": "monthly", "priority": 0.6},
|
{"url_key": "login", "changefreq": "monthly", "priority": 1},
|
||||||
{"url_key": "register", "changefreq": "monthly", "priority": 0.6},
|
{"url_key": "register", "changefreq": "monthly", "priority": 1},
|
||||||
{"url_key": "forgot-password", "changefreq": "monthly", "priority": 0.6}
|
{"url_key": "forgot-password", "changefreq": "monthly", "priority": 1}
|
||||||
]
|
]
|
||||||
|
|
||||||
def location(self, obj):
|
def location(self, obj):
|
||||||
|
|
|
@ -40,10 +40,10 @@ class ProjectsSitemap(Sitemap):
|
||||||
return obj.modified_date
|
return obj.modified_date
|
||||||
|
|
||||||
def changefreq(self, obj):
|
def changefreq(self, obj):
|
||||||
return "daily"
|
return "hourly"
|
||||||
|
|
||||||
def priority(self, obj):
|
def priority(self, obj):
|
||||||
return 0.6
|
return 0.9
|
||||||
|
|
||||||
|
|
||||||
class ProjectBacklogsSitemap(Sitemap):
|
class ProjectBacklogsSitemap(Sitemap):
|
||||||
|
|
Loading…
Reference in New Issue