summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.liquid18
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/index.liquid b/templates/index.liquid
index e2969b0..788c34b 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -116,14 +116,16 @@
{% for project in projects %}
<div class="item" data-id="{{ project.id }}">
<div class="top {% if project.media[2] %}gallery{% else %}single{% endif %}">
- {% for media in project.media %} {% if media.type == 'image' %}
- <div class="cell" style="background-image:url({{ media.uri }});
- {% if media.caption %} background-size:{{ media.caption }}; {% endif %}"></div>
- {% elsif media.type == 'vimeo' %}
- <div class="cell video" data-video="{{ media.token }}"></div>
- {% elsif media.type == 'link' %}
- <iframe class="cell" src="{{ media.uri }}"></iframe>
- {% endif %} {% endfor %}
+ {% for media in project.media %}
+ {% if media.type == 'image' %}
+ <div class="cell" style="background-image:url({{ media.uri }});
+ {% if media.caption %} background-size:{{ media.caption }}; {% endif %}"></div>
+ {% elsif media.type == 'vimeo' %}
+ <div class="cell video" data-video="{{ media.token }}"></div>
+ {% elsif media.type == 'link' %}
+ <iframe class="cell" src="{{ media.uri }}"></iframe>
+ {% endif %}
+ {% endfor %}
</div>
<div class="bottom {% if project.press.length %}press{% else %}nopress{% endif %}">
<div class="headings five">