diff options
Diffstat (limited to 'blog/_includes')
-rw-r--r-- | blog/_includes/pagination.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/blog/_includes/pagination.html b/blog/_includes/pagination.html new file mode 100644 index 0000000..061b03f --- /dev/null +++ b/blog/_includes/pagination.html @@ -0,0 +1,10 @@ +<!-- Pagination links --> +<section class="pagination"> + <span class="page_number ">{% t home.page_no %} {{ paginator.page }} / {{ paginator.total_pages }}</span> + {% if paginator.previous_page %} + <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous">{% t home.prev_page %}</a> + {% endif %} + {% if paginator.next_page %} + <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next">{% t home.next_page %}</a> + {% endif %} +</section> |