Permalink
Browse files

Add current page position between navigation buttons for pagination

  • Loading branch information...
1 parent 0899d86 commit 29a0dc729e9743f2fe0e7ff61f47c4fd59582d5e Praveer Gupta committed Aug 23, 2016
Showing with 6 additions and 1 deletion.
  1. +1 −0 _includes/pagination.html
  2. +5 −1 _sass/_pagination.scss
@@ -17,4 +17,5 @@
<span class="pagination-item disabled">{{ site.text.pagination.older }}</span>
{% endif %}
</div>
+ <div class="pagination-meta">Page {{ paginator.page }} of {{ paginator.total_pages }}</div>
</div>
@@ -16,10 +16,14 @@
padding: 1em 1.5em;
}
-.pagination .disabled {
+.pagination .disabled, .pagination .pagination-meta {
opacity: 0.5;
}
+.pagination .pagination-meta {
+ overflow: hidden;
+}
+
.pagination a:hover, .pagination a:focus {
background: white;
color: #477dca;

0 comments on commit 29a0dc7

Please sign in to comment.