added localized deschription fields osed for the meta description tag on the page for SEO.

This commit is contained in:
2016-10-14 21:25:23 +02:00
parent ba44e97e9a
commit bbe16b2d13
6 changed files with 194 additions and 40 deletions

View File

@@ -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