summaryrefslogtreecommitdiff
path: root/templates/index.liquid
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-04-04 12:14:18 -0400
committerJules Laplace <jules@okfoc.us>2016-04-04 12:14:18 -0400
commit7c073e83edf335fe611864c00a14abca0d718b11 (patch)
treed4cd6a2986039cdf60cc7ae68bb098deb1986630 /templates/index.liquid
parentfde2bc89e2b78cbe53b985e7e99c1797e1c99bb2 (diff)
preload images, inject iframes
Diffstat (limited to 'templates/index.liquid')
-rw-r--r--templates/index.liquid9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/index.liquid b/templates/index.liquid
index 697bd7f..d822579 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -118,12 +118,11 @@
<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>
+ <div class="cell image" data-uri="{{ media.uri }}" style="{% if media.caption %} background-size:{{ media.caption }}; {% endif %}"></div>
+ {% elsif media.type == 'video' %}
+ <div class="cell video" data-uri="{{ media.uri }}"></div>
{% elsif media.type == 'link' %}
- <iframe class="cell" src="{{ media.uri }}"></iframe>
+ <div class="cell iframe" data-uri="{{ media.uri }}"></div>
{% endif %}
{% endfor %}
</div>