[Backport] Make minor improvements over front sitemap

remotes/origin/logger
David Barragán Merino 2015-06-25 18:05:11 +02:00
parent 3e1a52e350
commit d24be5b5df
2 changed files with 6 additions and 6 deletions

View File

@ -25,10 +25,10 @@ from .base import Sitemap
class GenericSitemap(Sitemap):
def items(self):
return [
{"url_key": "home", "changefreq": "monthly", "priority": 0.6},
{"url_key": "login", "changefreq": "monthly", "priority": 0.6},
{"url_key": "register", "changefreq": "monthly", "priority": 0.6},
{"url_key": "forgot-password", "changefreq": "monthly", "priority": 0.6}
{"url_key": "home", "changefreq": "monthly", "priority": 1},
{"url_key": "login", "changefreq": "monthly", "priority": 1},
{"url_key": "register", "changefreq": "monthly", "priority": 1},
{"url_key": "forgot-password", "changefreq": "monthly", "priority": 1}
]
def location(self, obj):

View File

@ -40,10 +40,10 @@ class ProjectsSitemap(Sitemap):
return obj.modified_date
def changefreq(self, obj):
return "daily"
return "hourly"
def priority(self, obj):
return 0.6
return 0.9
class ProjectBacklogsSitemap(Sitemap):