summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-08 18:38:14 +0100
committerDan McGee <dan@archlinux.org>2012-03-08 18:38:14 +0100
commit1cc2b42fa117ac7469e8b2036bce11a349ac635e (patch)
tree94d01b1a00301b0527f4e3bd927c71907ea22356
parent7edc58c89c78d2e7c4f646e4b8562bc52ad7218d (diff)
downloadarchweb-1cc2b42fa117ac7469e8b2036bce11a349ac635e.tar.gz
archweb-1cc2b42fa117ac7469e8b2036bce11a349ac635e.tar.xz
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>
-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 800b883..0c67b86 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 %}