Hide dates on main articles page
This commit is contained in:
parent
739888cdae
commit
3a5e5e33f7
|
@ -1,11 +1,13 @@
|
|||
<div class="mb-2">
|
||||
<div class="mb-1">
|
||||
<h2 class="text-inherit text-lg m-0">
|
||||
<a href="{{ post.url }}" class="text-black inline-block">
|
||||
{{ post.draft ? 'Draft: '|upper }}{{ post.title }}
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
<p class="text-sm text-grey-dark">Posted on {{ post.date|date('jS F Y') }}</p>
|
||||
{% if show_date %}
|
||||
<p class="text-sm text-grey-dark mb-1">Posted on {{ post.date|date('jS F Y') }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
|
@ -13,7 +13,9 @@ use: [posts]
|
|||
<div class="-mt-4 -mx-4 spaced-y-4">
|
||||
{% for post in data.posts %}
|
||||
<article class="p-4 {{ post.draft ? 'bg-blue-lighter' }}">
|
||||
{% include 'blog/post-summary' %}
|
||||
{% include 'blog/post-summary' with {
|
||||
show_date: true,
|
||||
} %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
Reference in a new issue