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

{% block content %}
{% include "feathers/" ~ post.feather ~ ".twig" %}
{% if enabled_modules.comments %}
                {% 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>
                <h2 class="comments">${ "Comments" | translate }</h2>
                {% if post.comment_count > 0 %}
                <ol class="comments" id="comments_$post.id">
                    {% paginate comment in site.comments_per_page post.comments as comments %}{% include "content/comment.twig" %}{% endpaginate %}
                </ol>
                <input type="hidden" name="last_comment" value="$post.latest_comment" id="last_comment" />
                $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 %}
                {% endif %}
                {% if post.commentable %}
                {% include "forms/comment/new.twig" %}
                {% endif %}
                {% if post.comment_status == "closed" %}
                ${ "Comments are not accepted on this entry." | translate }
                {% endif %}
{% endif %}
{% endblock %}
