Don't show the read more link for tweet posts

This commit is contained in:
Oliver Davies 2019-06-06 19:40:55 +01:00
parent 32b2fe69c5
commit 3bd8fcd70a

View file

@ -15,11 +15,13 @@
<p>{{ post.excerpt }}</p>
</div>
<div>
<a href="{{ post.url }}" class="text-sm text-gray-600 hover:text-gray-800">
Read more
<span class="visuallyhidden">about '{{ post.title }}'</span>
&rarr;
</a>
</div>
{% if not post.type == 'tweet' %}
<div>
<a href="{{ post.url }}" class="text-sm text-gray-600 hover:text-gray-800">
Read more
<span class="visuallyhidden">about '{{ post.title }}'</span>
&rarr;
</a>
</div>
{% endif %}
</div>