diff options
author | Karl Hallsby <karl@hallsby.com> | 2021-10-03 00:35:46 -0500 |
---|---|---|
committer | Karl Hallsby <karl@hallsby.com> | 2021-10-03 02:16:55 -0500 |
commit | e2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch) | |
tree | b30dce94387f4717394277932f691519e0281c44 /_includes/pagination.html | |
parent | a10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff) |
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_includes/pagination.html')
-rw-r--r-- | _includes/pagination.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/_includes/pagination.html b/_includes/pagination.html new file mode 100644 index 0000000..6761017 --- /dev/null +++ b/_includes/pagination.html @@ -0,0 +1,17 @@ +{% if paginator.total_pages > 1 %} +<nav aria-label="Blog page naviation"> + <ul class="pagination pagination-lg justify-content-center"> + <li class="page-item {% unless paginator.previous_page %}disabled{% endunless %}"> + <a class="page-link" href="{{ paginator.previous_page_path | relative_url }}" tabindex="-1" aria-disabled="{{ paginator.previous_page }}">Newer</a> + </li> + {% if paginator.page_trail %} + {% for trail in paginator.page_trail %} + <li class="page-item {% if page.url == trail.path %}active{% endif %}"><a class="page-link" href="{{ trail.path | relative_url }}" title="{{trail.title}}">{{ trail.num }}</a></li> + {% endfor %} + {% endif %} + <li class="page-item {% unless paginator.next_page %}disabled{% endunless %}"> + <a class="page-link" href="{{ paginator.next_page_path | relative_url }}">Older</a> + </li> + </ul> +</nav> +{% endif %} |