46 lines
1.6 KiB
Twig
46 lines
1.6 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() | oneof(post.slug) | striptags | normalize | 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 class="category category_{{ post.category.id }}" 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("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>
|
|
<hr class="post">
|