Skip to content
Snippets Groups Projects
pagination.html 1006 B
Newer Older
William Light's avatar
William Light committed
{% if DEFAULT_PAGINATION and (articles_page.has_previous() or articles_page.has_next()) %}

                <div class="clear"></div>
                <div class="pages">
                {%- if articles_page.has_previous() %}
                {%   if articles_page.previous_page_number() == 1 %}

                    <a href="{{ SITEURL }}/{{ page_name }}.html" class="prev_page">&larr;&nbsp;Previous</a>
                {%-   else %}

                    <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html" class="prev_page">&larr;&nbsp;Previous</a>
                {%-   endif %}
                {%- endif %}
                {%- if articles_page.has_next() %}

                    <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html" class="next_page">Next&nbsp;&rarr;</a>
                {%- endif %}

                    <span>Page {{ articles_page.number }} of {{ articles_paginator.num_pages }}</span>
                </div>
{% endif %}