summaryrefslogtreecommitdiff
path: root/themes/simple/templates/pagination.html
diff options
context:
space:
mode:
authorDaniel Hader <[email protected]>2026-08-29 13:06:16 -0500
committerDaniel Hader <[email protected]>2026-08-29 13:06:16 -0500
commit5fa81500dcc07a853a01b0b0d813069467995807 (patch)
tree4edb04d0a99ee88492f99eb7a09d8982b56280f9 /themes/simple/templates/pagination.html
work in progress css
Diffstat (limited to 'themes/simple/templates/pagination.html')
-rw-r--r--themes/simple/templates/pagination.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/simple/templates/pagination.html b/themes/simple/templates/pagination.html
new file mode 100644
index 0000000..9511fdb
--- /dev/null
+++ b/themes/simple/templates/pagination.html
@@ -0,0 +1,17 @@
+{% if DEFAULT_PAGINATION %}
+ {% set first_page = articles_paginator.page(1) %}
+ {% set last_page = articles_paginator.page(articles_paginator.num_pages) %}
+ <nav>
+ <ul>
+ {% if articles_page.has_previous() %}
+ <li><a href="{{ SITEURL }}/{{ first_page.url }}">&Lang;</a></li>
+ <li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&lang;</a></li>
+ {% endif %}
+ <li>Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}</li>
+ {% if articles_page.has_next() %}
+ <li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">&rang;</a></li>
+ <li><a href="{{ SITEURL }}/{{ last_page.url }}">&Rang;</a></li>
+ {% endif %}
+ </ul>
+ </nav>
+{% endif %}