diff options
author | HombreLaser <buran@silosneeded.com> | 2024-05-05 19:51:24 -0600 |
---|---|---|
committer | HombreLaser <buran@silosneeded.com> | 2024-05-05 19:51:24 -0600 |
commit | 30c268fdabca62c7c4df6e8db7426666fc2be66a (patch) | |
tree | 8042bfd5d1ebee1ef492b9f1f8cac0e1c4c22438 /_includes/pagination.html | |
parent | bf2c057eece0e777036110526eb488b364dff108 (diff) |
Change interface
Diffstat (limited to '_includes/pagination.html')
-rw-r--r-- | _includes/pagination.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/_includes/pagination.html b/_includes/pagination.html new file mode 100644 index 0000000..f692362 --- /dev/null +++ b/_includes/pagination.html @@ -0,0 +1,49 @@ +{% if paginator.total_pages > 1 %} +<div class="column"> + <div class="pagination"> + {% if paginator.previous_page %} + <div class="column"> + <a href="{{ paginator.previous_page_path | relative_url }}" rel="prev"> + <i class="bi bi-chevron-left"></i> + </a> + </div> + {% endif %} + + {% if paginator.page == 1%} + <div class="column"> + <em>{% t index.first%}</em> + </div> + {% else %} + <div class="column"> + <a href="/"> + {% t index.first %} + </a> + </div> + {% endif %} + + <div class="column"> + {% t index.page %} {{ paginator.page }} {% t index.of %} {{ paginator.total_pages }} + </div> + + {% if paginator.page == paginator.total_pages %} + <div class="column"> + <em>{% t index.last %}</em> + </div> + {% else %} + <div class="column"> + <a href="{{ site.paginate_path | relative_url | replace: ':num', paginator.total_pages }}"> + {% t index.last %} + </a> + </div> + {% endif %} + + {% if paginator.next_page %} + <div class="column"> + <a href="{{ paginator.next_page_path | relative_url }}" rel="next"> + <i class="bi bi-chevron-right"></i> + </a> + </div> + {% endif %} + </div> +</div> +{% endif %} |