{% extends "layouts/default.twig" %}
{% block content %}

	{% if not post.next.no_results %}
		<a class="right next_post" href="$post.next.url">${ post.next.title | truncate(40) } &rarr;</a>
	{% endif %}
				
	{% if not post.prev.no_results %}
		<a class="left prev_post" href="$post.prev.url">&larr; ${ post.prev.title | truncate(40) }</a>
	{% endif %}
	
	<div class="clear"></div>

	{% include "feathers/" ~ post.feather ~ ".twig" %}
	{% if enabled_modules.comments %}
				
	{% if post.comment_count > 0 %}
	<h2>Comments</h2>
	<ol class="comments" id="comments_$post.id">
		{% for comment in post.comments.paginated %}{% include "content/comment.twig" %}{% endfor %}
	</ol>
	{% endif %}
				
	<input type="hidden" name="last_comment" value="$post.latest_comment" id="last_comment" />
				
	$post.comments.prev_link
	$post.comments.next_link
			
	{% if post.comments.paginated and post.comments.pages > 1 %}
		<span class="pages">Page $post.comments.page of $post.comments.pages</span>
	{% endif %}

{% if post.commentable %}
	{% include "forms/comment/new.twig" %}
{% endif %}

{% endif %}
{% endblock %}