Skip to content

Commit 207bf09

Browse files
committed
Added pagination to the example search template in the docs so it's clear that it is supported.
1 parent d00a40a commit 207bf09

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/tutorial.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,14 @@ will likely differ)::
295295
{% empty %}
296296
<p>No results found.</p>
297297
{% endfor %}
298+
299+
{% if page.has_previous or page.has_next %}
300+
<div>
301+
{% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; Previous{% if page.has_previous %}</a>{% endif %}
302+
|
303+
{% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Next &raquo;{% if page.has_next %}</a>{% endif %}
304+
</div>
305+
{% endif %}
298306
{% else %}
299307
{# Show some example queries to run, maybe query syntax, something else? #}
300308
{% endif %}

0 commit comments

Comments
 (0)