Move into an include
This commit is contained in:
parent
b195943c6c
commit
3694e89f96
9
source/_includes/talk/image.html.twig
Normal file
9
source/_includes/talk/image.html.twig
Normal 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 %}
|
|
@ -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 %}
|
||||
|
|
Reference in a new issue