Show date on archive page
This commit is contained in:
parent
d595d425cd
commit
d5028b9110
|
@ -1,8 +1,12 @@
|
||||||
<div class="spaced-y-1">
|
<div class="spaced-y-1">
|
||||||
<div>
|
<div class="spaced-y-px">
|
||||||
<h2 class="text-inherit text-lg m-0">
|
<h2 class="text-inherit text-lg m-0">
|
||||||
{{ post.draft ? 'Draft: '|upper }}{{ post.title }}
|
{{ post.draft ? 'Draft: '|upper }}{{ post.title }}
|
||||||
</h2>
|
</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>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -18,7 +18,9 @@ use: [posts]
|
||||||
<div class="-mx-4 spaced-y-4">
|
<div class="-mx-4 spaced-y-4">
|
||||||
{% for post in data.posts %}
|
{% for post in data.posts %}
|
||||||
<article class="p-4 {{ post.draft ? 'bg-blue-lighter' }}">
|
<article class="p-4 {{ post.draft ? 'bg-blue-lighter' }}">
|
||||||
{% include 'blog/post-summary' %}
|
{% include 'blog/post-summary' with {
|
||||||
|
show_date: true,
|
||||||
|
} %}
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue