42 lines
1.5 KiB
Twig
42 lines
1.5 KiB
Twig
|
{% extends "layouts" ~ DIR ~ "default.twig" %}
|
||
|
|
||
|
{% block content %}
|
||
|
{% if not post.prev.no_results %}
|
||
|
<div role="navigation" class="prev traversal">
|
||
|
<a rel="prev" href="{{ post.prev.url() }}">{{ "← Next post" | translate }}</a>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% include(["feathers" ~ DIR ~ post.feather ~ ".twig", "feathers" ~ DIR ~ "missing.twig"]) %}
|
||
|
{% if not post.next.no_results %}
|
||
|
<div role="navigation" class="next traversal">
|
||
|
<a rel="next" href="{{ post.next.url() }}">{{ "Previous post →" | translate }}</a>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% if module_enabled("pingable") and post.pingback_count > 0 %}
|
||
|
<article class="discourse">
|
||
|
<h3 id="pingbacks">{{ "Webmentions" | translate }}</h3>
|
||
|
<ol class="pingbacks">
|
||
|
{% for pingback in post.pingbacks %}
|
||
|
<li><a id="pingback_{{ pingback.id }}" href="{{ pingback.source | fix(true) }}">{{ pingback.title | oneof("[Untitled]" | translate) }}</a></li>
|
||
|
{% endfor %}
|
||
|
</ol>
|
||
|
</article>
|
||
|
{% endif %}
|
||
|
{% if module_enabled("comments") and (post.comment_count > 0 or post.commentable) %}
|
||
|
<article class="commentary">
|
||
|
<h3 id="comments">{{ "Comments" | translate }}</h3>
|
||
|
<ol class="comments" data-post_id="{{ post.id }}" data-timestamp="{{ post.latest_comment }}">
|
||
|
{% for comment in post.comments %}
|
||
|
{% include "content" ~ DIR ~ "comment.twig" %}
|
||
|
{% endfor %}
|
||
|
<li id="comment_shim"></li>{# Needed for AJAX commenting. #}
|
||
|
{% if post.commentable %}
|
||
|
<li class="comment_form">
|
||
|
{% include "forms" ~ DIR ~ "comment" ~ DIR ~ "new.twig" %}
|
||
|
</li>
|
||
|
{% endif %}
|
||
|
</ol>
|
||
|
</article>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|