Hide dates on main articles page

This commit is contained in:
Oliver Davies 2019-03-04 10:13:52 +00:00
parent 739888cdae
commit 3a5e5e33f7
2 changed files with 7 additions and 3 deletions

View file

@ -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>

View file

@ -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>