summaryrefslogtreecommitdiff
path: root/templates/pagination.html
diff options
context:
space:
mode:
authorVasudev Kamath <vasudev@copyninja.info>2016-04-17 13:15:23 +0530
committerVasudev Kamath <vasudev@copyninja.info>2016-04-17 13:15:23 +0530
commitf1b37410dd85f42d663f1eb591ac9bde567eeb47 (patch)
tree3fa2a35e467bf7f7432d4e88f7e0f6305ffd9f41 /templates/pagination.html
Template copied from pelican's simple theme.
Diffstat (limited to 'templates/pagination.html')
-rw-r--r--templates/pagination.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/pagination.html b/templates/pagination.html
new file mode 100644
index 0000000..4219a5c
--- /dev/null
+++ b/templates/pagination.html
@@ -0,0 +1,11 @@
+{% if DEFAULT_PAGINATION %}
+<p class="paginator">
+ {% if articles_page.has_previous() %}
+ <a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&laquo;</a>
+ {% endif %}
+ Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
+ {% if articles_page.has_next() %}
+ <a href="{{ SITEURL }}/{{ articles_next_page.url }}">&raquo;</a>
+ {% endif %}
+</p>
+{% endif %}