Added next and previous page links
This commit is contained in:
		
							parent
							
								
									3a6dc53531
								
							
						
					
					
						commit
						c58414f975
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -19,3 +19,14 @@ use:
 | 
			
		|||
    <a href="{{ post.url }}">Read more →</a>
 | 
			
		||||
  </article>
 | 
			
		||||
{% endfor %}
 | 
			
		||||
 | 
			
		||||
{% if page.pagination.previous_page or page.pagination.next_page %}
 | 
			
		||||
  <nav>
 | 
			
		||||
    {% if page.pagination.previous_page %}
 | 
			
		||||
      <a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer Items</a>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if page.pagination.next_page %}
 | 
			
		||||
      <a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Items</a>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
  </nav>
 | 
			
		||||
{% endif %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue