Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
bug 1316610: Avoid indexing empty, dupe docs
Browse files Browse the repository at this point in the history
If a document is empty, or it an untranslated page that is just showing
the English document, then ask the search crawlers not to index it.
  • Loading branch information
jwhitlock committed Feb 2, 2018
1 parent 85b7a98 commit 748a813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kuma/wiki/jinja2/wiki/document.html
Expand Up @@ -36,7 +36,7 @@
{% endif %}

{% block robots_value %}
{%- if document.is_experiment -%}
{%- if document.is_experiment or fallback_reason or not document_html -%}
noindex, nofollow
{%- else -%}
{{ super() }}
Expand Down

0 comments on commit 748a813

Please sign in to comment.