Skip to content
Snippets Groups Projects
Commit 91ea17af authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[MERGE] forward port branch 10.0 up to a93a5c68

parents 82f45063 a93a5c68
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ class BlogPost(models.Model):
blog_post.teaser = blog_post.teaser_manual
else:
content = html2plaintext(blog_post.content).replace('\n', ' ')
blog_post.teaser = ' '.join(filter(None, content.split(' '))[:50]) + '...'
blog_post.teaser = content[:150] + '...'
@api.multi
def _set_teaser(self):
......
......@@ -101,6 +101,7 @@
<t t-call="website_blog.index">
<t t-set="head">
<link t-att-href="'/blog/%s/feed' % (blog.id)" type="application/atom+xml" rel="alternate" title="Atom Feed"/>
<meta t-if="len(active_tag_ids) > 0" name="robots" t-attf-content="#{len(active_tag_ids) > 1 and 'noindex,'} nofollow"/>
</t>
<div class="oe_structure"/>
<div class="container">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment