summaryrefslogtreecommitdiff
path: root/_includes/pagination.liquid
diff options
context:
space:
mode:
Diffstat (limited to '_includes/pagination.liquid')
-rw-r--r--_includes/pagination.liquid22
1 files changed, 22 insertions, 0 deletions
diff --git a/_includes/pagination.liquid b/_includes/pagination.liquid
new file mode 100644
index 0000000..51683d4
--- /dev/null
+++ b/_includes/pagination.liquid
@@ -0,0 +1,22 @@
+{% if paginator.total_pages > 1 %}
+ <div class="column">
+ {% if paginator.previous_page %}
+ <a class="button" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left mr-2" viewBox="0 0 16 16">
+ <path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>
+ </svg>
+ Newer
+ </a>
+ {% endif %}
+ </div>
+ <div class="column">
+ {% if paginator.next_page %}
+ <a class="button" href="{{ paginator.next_page_path | prepend: site.baseurl }}">
+ Older
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right ml-2" viewBox="0 0 16 16">
+ <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8"/>
+ </svg>
+ </a>
+ {% endif %}
+ </div>
+{% endif %}