{% 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 and (post.comment_count > 0 or post.commentable) %}
                <h2 class="comments">${ "Comments" | translate }</h2>
                <ol class="comments" id="comments_$post.id">
                    {% paginate site.comments_per_page comments in post.comments as comment %}
                    {% include "content/comment.twig" %}
                    {% else %}
                    <li class="no_comments"></li> {# Needed for AJAX commenting and XHTML Strict validation. #}
                    {% endpaginate %}
                </ol>
                $comments.prev_link
                $comments.next_link
                {% if comments.pages > 1 %}
                <span class="pages">${ "Page %d of %d" | translate | format(comments.page, comments.pages) }</span>
                {% endif %}
                {% if post.commentable %}
                {% include "forms/comment/new.twig" %}
                {% endif %}
                {% if post.comment_status == "closed" %}
                ${ "Comments are not accepted on this entry." | translate }
                {% endif %}
                <br />
{% endif %}
{% endblock %}
