Update post summary layout

This commit is contained in:
Oliver Davies 2019-03-04 11:32:53 +00:00
parent 3a4bad3bb7
commit 15268dd1a1
2 changed files with 17 additions and 15 deletions

View file

@ -1,15 +1,19 @@
<div class="mb-1">
<h2 class="text-inherit text-lg m-0">
<a href="{{ post.url }}" class="text-black inline-block">
<div class="spaced-y-1">
<div>
<h2 class="text-inherit text-lg m-0">
{{ post.draft ? 'Draft: '|upper }}{{ post.title }}
</h2>
</div>
<div>
<p>{{ post.excerpt }}</p>
</div>
<div>
<a href="{{ post.url }}" class="text-sm text-grey-dark hover:text-grey-darker">
Read more
<span class="visuallyhidden">about '{{ post.title }}'</span>
&rarr;
</a>
</h2>
{% if show_date %}
<p class="text-sm text-grey-dark mb-1">Posted on {{ post.date|date('jS F Y') }}</p>
{% endif %}
</div>
<div>
<p>{{ post.excerpt }}</p>
</div>
</div>