Skip to content

Commit

Permalink
Only show pagination
Browse files Browse the repository at this point in the history
Only show pagination if the number of total pages is greater than one. [paginator.total_pages != 1] This only gets relevant if the administrator's site.paginate setting in _config.yml is greater than the number of posts at all [paginator.total_posts]. Keep on rocking!
  • Loading branch information
publitcity authored Jan 15, 2017
1 parent 3316a55 commit 09d83c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/pagination.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% if paginator.total_pages != 1 %}
<div class="pagination clearfix mb1 mt4">
<div class="left">
{% if paginator.previous_page %}
Expand All @@ -19,3 +20,4 @@
</div>
<div class="pagination-meta">Page {{ paginator.page }} of {{ paginator.total_pages }}</div>
</div>
{% endif %}

0 comments on commit 09d83c7

Please sign in to comment.