added localized deschription fields osed for the meta description tag on the page for SEO.
This commit is contained in:
@@ -4,7 +4,6 @@ from .models import Article, Page
|
||||
class ArticleSitemap(Sitemap):
|
||||
changefreq = "never"
|
||||
priority = 0.6
|
||||
protocol = 'https'
|
||||
|
||||
def items(self):
|
||||
return Article.objects.published()
|
||||
@@ -16,10 +15,10 @@ class ArticleSitemap(Sitemap):
|
||||
class PageSitemap(Sitemap):
|
||||
changefreq = "monthly"
|
||||
priority = 0.4
|
||||
protocol = 'https'
|
||||
|
||||
def items(self):
|
||||
return Page.objects.all() #filter(status__gt=0)
|
||||
|
||||
def location(self, page):
|
||||
return page.get_absolute_url()
|
||||
def lastmod(self, page):
|
||||
return page.date_modified
|
||||
|
||||
|
||||
Reference in New Issue
Block a user