I am trying to use Django sitemaps.
class BlogSiteMap(Sitemap):
"""A simple class to get sitemaps for blog"""
changefreq = 'hourly'
priority = 0.5
def items(self):
return Blog.objects.order_by('-pubDate')
def lastmod(self, obj):
return obj.pubDate
My problem is..I wanted to set the priority of first 3 blog object as 1.0 and rest of them as 0.5 priority.
I read the documentation but couldn't any way out of it.
Any help would be appreciable. Thanks in advance.