Pagination, feed update, slash pages

This commit is contained in:
n_u committed 2025-12-13 17:25:52 -06:00
1 parent c5ce302fee
commit 33f73f81ed
16 files changed
+101 -17

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
{% set numPages = pagination.pages | length %}
{% if pagination.pageNumber > 0 %}
<a href="/{{ paginationRootDir }}/{% if pagination.pageNumber > 1%}page-{{ pagination.pageNumber }}/{% endif %}">
<button type="button">← Previous</button>
</a>
{% endif %}
{% if pagination.pageNumber < numPages - 1 %}
<a href="/{{ paginationRootDir }}/page-{{ pagination.pageNumber + 2 }}/">
<button type="button">{% if pagination.pageNumber == 0%}More{% else %}Next{% endif %} →</button>
</a>
{% endif %}