This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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: '//', '/' }}">« Prev</a> |