Skip to content
Snippets Groups Projects
Commit bc2dc85c authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website_blog: don't index blogs index with tags


Courtesy of sts

closes odoo/odoo#60434

Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
parent c36efd42
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,9 @@ list of filtered posts (by date or tag).
============================================================================ -->
<template id="blog_post_short" name="Blog Posts">
<t t-call="website_blog.index">
<t t-set="head" t-if="blog">
<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 t-set="head">
<link t-if="blog" t-att-href="'/blog/%s/feed' % (blog.id)" type="application/atom+xml" rel="alternate" title="Atom Feed"/>
<meta t-if="len(active_tag_ids)" name="robots" t-attf-content="#{len(active_tag_ids) > 1 and 'noindex,'} nofollow"/>
</t>
<!-- Check for active options: the stored value may be used in sub-templates too -->
......
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