Make link optional per #108

This commit is contained in:
benjamin melançon 2018-11-22 13:03:50 -05:00
parent 1b5d880a40
commit 9ae8cfe14c

View file

@ -1,8 +1,16 @@
{% if url %}
<a href="{{ url }}" class="media teaser">
{% else %}
<div class="media teaser">
{% endif %}
<div class="media-left">
{{ image }}
</div>
<div class="media-content">
{{ text }}
</div>
{% if url %}
</a>
{% else %}
</div>
{% endif %}