Show date on archive page

This commit is contained in:
Oliver Davies 2019-03-07 02:46:46 +00:00
parent d595d425cd
commit d5028b9110
2 changed files with 8 additions and 2 deletions

View file

@ -1,8 +1,12 @@
<div class="spaced-y-1">
<div>
<div class="spaced-y-px">
<h2 class="text-inherit text-lg m-0">
{{ post.draft ? 'Draft: '|upper }}{{ post.title }}
</h2>
{% if show_date %}
<time class="text-sm mb-1 block" datetime="{{ post.date|date('Y-m-d') }}">{{ post.date|date('jS F Y') }}</time>
{% endif %}
</div>
<div>