add nav buttons to the bottom of posts
This commit is contained in:
		@ -1,9 +1,11 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
layout: layout/base.njk
 | 
					layout: layout/base.njk
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
{# {% set previousPost = collections.post | getPreviousCollectionItem(page) %}
 | 
					{% set previousPost = collections.post | getPreviousCollectionItem(page) %}
 | 
				
			||||||
{% set nextPost = collections.post | getNextCollectionItem(page) %}
 | 
					{% set nextPost = collections.post | getNextCollectionItem(page) %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% if previousPost %}Previous Blog Post: <a href="{{ previousPost.url }}">{{ previousPost.data.title }}</a>{% endif %}
 | 
					<article class="blog-post">{{ content | safe}}</article>
 | 
				
			||||||
{% if nextPost %}Next Blog Post: <a href="{{ nextPost.url }}">{{ nextPost.data.title }}</a>{% endif %} #}
 | 
					<div class="nav-buttons">
 | 
				
			||||||
<article class="blog-post">{{ content | safe}}</article>
 | 
					{% if nextPost %}<a href="{{ nextPost.url }}"><== next</a>{% else %}x=={% endif %}
 | 
				
			||||||
 | 
					{% if previousPost %}<a href="{{ previousPost.url }}">prev ==></a>{% else %}==x{% endif %}
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user