61 lines
2.2 KiB
Twig
61 lines
2.2 KiB
Twig
<article class="post {{ post.feather }}{{ post.pinned ? ' pinned' : '' }}" id="post_{{ post.id }}">
|
|
{% block content %}{% endblock %}
|
|
<footer>
|
|
{% if (module_enabled("tags") and post.tags_link is not empty) %}
|
|
<div role="note" class="tags">
|
|
<a href="{{ url('tags') }}">{{ "Tags" | translate }}:</a> {{ post.tags_link | join(" ") }}
|
|
</div>
|
|
{% endif %}
|
|
{% if post.editable() or post.deletable() %}
|
|
<div class="doaction admin">
|
|
{{ post.edit_link() }} {{ post.delete_link() }}
|
|
</div>
|
|
{% endif %}
|
|
<div role="note" class="metadata">
|
|
<a href="{{ post.url() }}" rel="bookmark" title="{{ 'Permanent link to “%s”' | translate | format(post.title() | striptags | fix(true)) }}">
|
|
{% if post.status == "draft" %}
|
|
{{ "Draft" | translate }}
|
|
{% elseif post.status == "scheduled" %}
|
|
{{ "Scheduled" | translate }}
|
|
{% elseif post.pinned %}
|
|
{{ "Pinned" | translate }}
|
|
{% else %}
|
|
{{ post.created_at | time }}
|
|
{% endif %}
|
|
</a>
|
|
{% if module_enabled("categorize") and post.category is defined %}
|
|
• <a href="{{ post.category.url() }}" rel="tag">{{ post.category.name | oneof("[Untitled]" | translate) }}</a>
|
|
{% endif %}
|
|
{% if module_enabled("likes") %}
|
|
{{ post.like_link ? "• " ~ post.like_link : "" }}
|
|
{% endif %}
|
|
{% if module_enabled("pingable") and post.pingback_count is defined %}
|
|
•
|
|
<a href="{{ post.url() }}#pingbacks" rel="bookmark" title="{{ 'View webmentions' | translate }}">
|
|
{{ "%s webmention" | translate_plural("%s webmentions", post.pingback_count) | format(post.pingback_count) }}
|
|
</a>
|
|
{% endif %}
|
|
{% if module_enabled("comments") and post.comment_status is defined and post.comment_count is defined %}
|
|
{% if post.comment_status == "closed" %}
|
|
• {{ "Comments closed" | translate }}
|
|
{% else %}
|
|
•
|
|
<a href="{{ post.url() }}#comments" rel="bookmark" title="{{ 'View comments' | translate }}">
|
|
{{ "%s comment" | translate_plural("%s comments", post.comment_count) | format(post.comment_count) }}
|
|
</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if module_enabled("rights") %}
|
|
•
|
|
{% if post.rights_holder is defined and post.rights_holder is not empty %}
|
|
{{ copyright_notice(post.rights_holder) }}
|
|
{% else %}
|
|
{{ copyright_notice(post.author.name, post.created_at, post.updated_at) }}
|
|
{% endif %}
|
|
•
|
|
{{ post.licence_link }}
|
|
{% endif %}
|
|
</div>
|
|
</footer>
|
|
</article>
|