summaryrefslogtreecommitdiff
path: root/templates/packages/search.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-08 11:38:14 -0600
committerDan McGee <dan@archlinux.org>2012-03-08 11:38:14 -0600
commit1cc2b42fa117ac7469e8b2036bce11a349ac635e (patch)
tree94d01b1a00301b0527f4e3bd927c71907ea22356 /templates/packages/search.html
parent7edc58c89c78d2e7c4f646e4b8562bc52ad7218d (diff)
Encourage robots to not dive into search results pages
Add a meta tag for all search results pages past the first. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/search.html')
-rw-r--r--templates/packages/search.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/packages/search.html b/templates/packages/search.html
index 800b883d..0c67b86a 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -6,6 +6,7 @@
{% block navbarclass %}anb-packages{% endblock %}
{% block head %}
+{% if is_paginated and page_obj.number > 1 %}<meta name="robots" content="noindex, nofollow"/>{% endif %}
<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/widgets.css" />
{% endblock %}