conditionals for prev next
This commit is contained in:
parent
a3ff114ba3
commit
17b710d54f
|
@ -40,9 +40,9 @@
|
||||||
|
|
||||||
{% if page.has_previous or page.has_next %}
|
{% if page.has_previous or page.has_next %}
|
||||||
<div id="prevNext>
|
<div id="prevNext>
|
||||||
{% if page.has_previous %}<a id="triangleUp" href="?q={{ query }}&page={{ page.previous_page_number }}">{% endif %}« Previous{% if page.has_previous %}</a>{% endif %}
|
{% if page.has_previous %}<a id="triangleUp" href="?q={{ query }}&page={{ page.previous_page_number }}">Previous</a>{% endif %}
|
||||||
|
|
|
|
||||||
{% if page.has_next %}<a id="triangleDown" href="?q={{ query }}&page={{ page.next_page_number }}">{% endif %}Next »{% if page.has_next %}</a>{% endif %}
|
{% if page.has_next %}<a id="triangleDown" href="?q={{ query }}&page={{ page.next_page_number }}">Next</a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user