Move into an include

This commit is contained in:
Oliver Davies 2018-03-31 20:46:02 +01:00
parent b195943c6c
commit 3694e89f96
2 changed files with 10 additions and 9 deletions

View file

@ -0,0 +1,9 @@
{% if talk.speakerdeck.id %}
<div class="hidden sm:block sm:w-1/5 md:w-1/4 sm:mx-2">
<img
src="https://speakerd.s3.amazonaws.com/presentations/{{ talk.speakerdeck.id }}/slide_0.jpg"
alt="{{ talk.title }}"
class="border border-solid p-1 bg-white"
>
</div>
{% endif %}

View file

@ -20,15 +20,7 @@ use: [talks]
</div>
</div>
{% if talk.speakerdeck.id %}
<div class="hidden sm:block sm:w-1/5 md:w-1/4 sm:mx-2">
<img
src="https://speakerd.s3.amazonaws.com/presentations/{{ talk.speakerdeck.id }}/slide_0.jpg"
alt="{{ talk.title }}"
class="border border-solid p-1 bg-white"
>
</div>
{% endif %}
{% include 'talk/image.html.twig' %}
</div>
{% endfor %}
{% endblock %}