summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorcoderkun <olli@suruatoel.xyz>2018-10-07 21:01:26 +0200
committerJelle van der Waa <jelle@vdwaa.nl>2018-10-21 18:54:35 +0200
commit267c341efa3efdad10df87c62df3c71a287bf58b (patch)
tree63b915942a5c39e32e9dbfd650943bbcde8072f3 /templates
parentc522212d791024c0e9036ba5c999c865dd14f6e6 (diff)
downloadarchweb-267c341efa3efdad10df87c62df3c71a287bf58b.tar.gz
archweb-267c341efa3efdad10df87c62df3c71a287bf58b.zip
Add “rel” attribute to pagination links
Add the “rel” attribute for “prev” and “next” to the pagination links of news and packages.
Diffstat (limited to 'templates')
-rw-r--r--templates/news/paginator.html4
-rw-r--r--templates/packages/search_paginator.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/news/paginator.html b/templates/news/paginator.html
index 57fbeb15..524c6664 100644
--- a/templates/news/paginator.html
+++ b/templates/news/paginator.html
@@ -4,7 +4,7 @@
<p class="news-nav">
{% if page_obj.has_previous %}
<a class="prev" href="?page={{ page_obj.previous_page_number }}"
- title="Go to previous page">&lt; Prev</a>
+ title="Go to previous page" rel="prev">&lt; Prev</a>
{% endif %}
{% for num in paginator.page_range %}
{% ifequal num page_obj.number %}
@@ -15,7 +15,7 @@
{% endfor %}
{% if page_obj.has_next %}
<a class="next" href="?page={{ page_obj.next_page_number }}"
- title="Go to next page">Next &gt;</a>
+ title="Go to next page" rel="next">Next &gt;</a>
{% endif %}
</p>
</div>
diff --git a/templates/packages/search_paginator.html b/templates/packages/search_paginator.html
index a748d26b..a6766262 100644
--- a/templates/packages/search_paginator.html
+++ b/templates/packages/search_paginator.html
@@ -7,7 +7,7 @@
<span class="prev">
{% if page_obj.has_previous %}
<a href="?page={{ page_obj.previous_page_number }}&amp;{{ current_query }}"
- title="Go to previous page">&lt; Prev</a>
+ title="Go to previous page" rel="prev">&lt; Prev</a>
{% else %}
&lt; Prev
{% endif %}
@@ -15,7 +15,7 @@
<span class="next">
{% if page_obj.has_next %}
<a href="?page={{ page_obj.next_page_number }}&amp;{{ current_query }}"
- title="Go to next page">Next &gt;</a>
+ title="Go to next page" rel="next">Next &gt;</a>
{% else %}
Next &gt;
{% endif %}