flex/templates/partial/pagination.html
Alexandre Vicenzi b35cde0428 Flex theme.
2015-07-18 21:04:01 -03:00

20 lines
750 B
HTML

{% if DEFAULT_PAGINATION %}
<div class="pagination">
{% if articles_page.has_next() %}
<a class="btn" href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">
<i class="fa fa-angle-left"></i> Older Posts
</a>
{% endif %}
{% if articles_page.has_previous() %}
{% if articles_page.previous_page_number() == 1 %}
<a class="btn float-right" href="{{ SITEURL }}/{{ page_name }}.html">
Newer Posts <i class="fa fa-angle-right"></i>
</a>
{% else %}
<a class="btn float-right" href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">
Newer Posts <i class="fa fa-angle-right"></i>
</a>
{% endif %}
{% endif %}
</div>
{% endif %}