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"> <a href="{{ url }}" class="media teaser">
{% else %}
<div class="media teaser">
{% endif %}
<div class="media-left"> <div class="media-left">
{{ image }} {{ image }}
</div> </div>
<div class="media-content"> <div class="media-content">
{{ text }} {{ text }}
</div> </div>
{% if url %}
</a> </a>
{% else %}
</div>
{% endif %}