forked from deepStateMirrors/tabi
✨ feat(list_posts.html): display draft status in post list (#203)
Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
parent
60af91f422
commit
40df48fd87
2 changed files with 31 additions and 14 deletions
|
@ -11,12 +11,14 @@
|
|||
<section class="bloglist-row bottom-divider">
|
||||
{% endif %}
|
||||
|
||||
{% if post.date %}
|
||||
<div class="date">
|
||||
{{ macros_format_date::format_date(date=post.date, short=false, language_strings=language_strings) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<ul class="bloglist-meta">
|
||||
{% if post.date %}
|
||||
<li class="date">{{ macros_format_date::format_date(date=post.date, short=false, language_strings=language_strings) }}</li>
|
||||
{% endif %}
|
||||
{% if post.draft %}
|
||||
<li class="draft-label">{{ macros_translate::translate(key="draft", default="DRAFT", language_strings=language_strings) }}</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<div class="bloglist-content">
|
||||
<h2 class="bloglist-title">
|
||||
<a href="{{ post.permalink }}">{{ post.title }}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue