Browse Source

Test for new pagination

redesign
Anxhelo Lushka 7 years ago
committed by GitHub
parent
commit
6532838dce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      _layouts/blog.html

15
_layouts/blog.html

@ -16,19 +16,24 @@ layout: default
<div class="three spacing"></div> <div class="three spacing"></div>
{{content}} {{content}}
{% if paginator %} {% if paginator %}
<div class="pager"> <div class="full light-grey blog">
<nav class='wrapper'>
<div class="row">
<div class="small-6 columns">
{% if paginator.next_page %} {% if paginator.next_page %}
{% if paginator.next_page == 1 %} {% if paginator.next_page == 1 %}
<a href="/blog" class="older">Older Entries <i class="fa fa-angle-double-right"></i></a> <a href="/blog" class="next button boxed black">Older Entries <i class="fa fa-angle-double-right"></i></a>
{% else %} {% else %}
<a href="/blog/page{{ paginator.next_page }}" class="older">Older Entries <i class="fa fa-angle-double-right"></i></a> <a href="/blog/page{{ paginator.next_page }}" class="older">Older Entries <i class="fa fa-angle-double-right"></i></a>
{% endif %} {% endif %}
{% else %} {% else %}
<!-- <span class="older">Older Entries</span> --> <!-- <span class="older">Older Entries</span> -->
{% endif %} {% endif %}
</div>
<div class="small-6 columns">
{% if paginator.previous_page %} {% if paginator.previous_page %}
{% if paginator.previous_page == 1 %} {% if paginator.previous_page == 1 %}
<a href="/blog" class="newer"><i class="fa fa-angle-double-left"></i> Newer Entries</a> <a href="/blog" class="previous button boxed black"><i class="fa fa-angle-double-left"></i> Newer Entries</a>
{% else %} {% else %}
<a href="/blog/page{{ paginator.previous_page }}" class="newer"><i class="fa fa-angle-double-left"></i>Newer Entries</a> <a href="/blog/page{{ paginator.previous_page }}" class="newer"><i class="fa fa-angle-double-left"></i>Newer Entries</a>
{% endif %} {% endif %}
@ -36,6 +41,8 @@ layout: default
<!-- <span class="newer">Newer Entries</span> --> <!-- <span class="newer">Newer Entries</span> -->
{% endif %} {% endif %}
</div> </div>
<div class="two spacing"></div> </div>
</nav>
</div>
{% endif %} {% endif %}

Loading…
Cancel
Save