Skip to content

Instantly share code, notes, and snippets.

@ahmedtalaltwd7
ahmedtalaltwd7 / pagination.html
Created December 2, 2021 00:54 — forked from sharu725/pagination.html
Jekyll Pagination
<!--
Before implementing this Jekyll snippet make sure
1. "plugins: jekyll-paginate" is added in the _config.yml file.
2. for loop has "paginator.post" instead of "site.posts".
-->
{% if paginator.total_pages > 1 %}
<div class="wj-pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>