2024-06-20 14:10:42 +00:00
<article class="post {{ post .feather }} {{ post .pinned ? ' pinned' : '' }} " id="post_ {{ post .id }} ">
<header>
<span class="permalink">
<a href=" {{ post .url ( ) }} " rel="bookmark" title=" {{ 'Permanent link to “%s”' | translate | format ( post .title | striptags | normalize | fix ( true ) ) }} ">†</a>
</span>
<span class="time">
{% if post .status == "draft" %}
2025-01-13 09:56:01 +00:00
{{ - "Drafted on %s." | translate | format ( post .created_at | time ) -}}
2024-06-20 14:10:42 +00:00
{% elseif post .status == "scheduled" %}
2025-01-13 09:56:01 +00:00
{{ - "Scheduled for %s." | translate | format ( post .created_at | time ) -}}
2024-06-20 14:10:42 +00:00
{% elseif post .pinned %}
2025-01-13 09:56:01 +00:00
{{ - "Pinned on %s." | translate | format ( post .created_at | time ) -}}
2024-06-20 14:10:42 +00:00
{% else %}
2025-01-13 09:56:01 +00:00
{{ - "Posted on %s." | translate | format ( post .created_at | time ) -}}
2024-06-20 14:10:42 +00:00
{% endif %}
</span>
{% if module_enabled ( "categorize" ) and post .category is defined %}
<span class="category">
{% set category_name = post .category .name | oneof ( "[Untitled]" | translate ) %}
2024-09-05 17:51:48 +00:00
{% set category_link = '<a href="' ~ post .category .url ( ) ~ '" rel="tag">' ~ category_name ~ '</a>' %}
2025-01-13 09:56:01 +00:00
{{ - "Filed in %s." | translate | format ( category_link ) -}}
2024-06-20 14:10:42 +00:00
</span>
{% endif %}
{% if ( module_enabled ( "tags" ) and post .tags_link is not empty ) %}
<span class="tags">
2025-01-13 09:56:01 +00:00
{{ - "Tagged with %s." | translate | format ( post .tags_link | join ( ", " ) ) -}}
2024-06-20 14:10:42 +00:00
</span>
{% endif %}
2025-01-13 09:56:01 +00:00
{% if module_enabled ( "likes" ) %}
{{ post .like_link }}
{% endif %}
2024-06-20 14:10:42 +00:00
</header>
{% block content %} {% endblock %}
<footer>
{% if post .editable ( ) or post .deletable ( ) %}
<div class="doaction admin">
{{ post .edit_link ( ) }} {{ post .delete_link ( ) }}
</div>
{% endif %}
</footer>
</article>