[website] [fix] explicitly pass meta description

This commit is contained in:
Anand Doshi 2013-05-22 12:14:31 +05:30
parent cb99045764
commit dcfb4b7ab9
3 changed files with 5 additions and 0 deletions

View File

@ -81,3 +81,4 @@ class DocType(DocTypeNestedSet):
if self.doc.slideshow:
from website.helpers.slideshow import get_slideshow
get_slideshow(self)

View File

@ -76,10 +76,12 @@ class DocType:
self.doc.full_name = get_fullname(self.doc.owner)
self.doc.updated = global_date_format(self.doc.published_on)
self.doc.content_html = self.doc.content
if self.doc.blogger:
self.doc.blogger_info = webnotes.doc("Blogger", self.doc.blogger).fields
self.doc.description = self.doc.blog_intro or self.doc.content[:140]
self.doc.meta_description = self.doc.description
self.doc.categories = webnotes.conn.sql_list("select name from `tabBlog Category` order by name")

View File

@ -44,3 +44,5 @@ class DocType():
if self.doc.slideshow:
from website.helpers.slideshow import get_slideshow
get_slideshow(self)
self.doc.meta_description = self.doc.description