diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-27 17:02:55 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-27 17:04:47 -0400 |
| commit | 934a8ac8afdaa2afc2061542abbf3f4864a476b1 (patch) | |
| tree | 37f3a7d795545fdef683569275e5bcad67356fff /site/templates | |
| parent | 03d2e95c057e1dcbcf9994c3f32d8e28e6b6af53 (diff) | |
prev/next buttons
Diffstat (limited to 'site/templates')
| -rw-r--r-- | site/templates/project.liquid | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/site/templates/project.liquid b/site/templates/project.liquid index 3d32c0d..0dc828c 100644 --- a/site/templates/project.liquid +++ b/site/templates/project.liquid @@ -6,11 +6,12 @@ <span class="nextbutton">NEXT ASSET</span> </div> <div class="gallery" id="okgallery"> - {% if project.video.token %} - <div class="cell video" style="background-image:url({{ project.video.thumb }})" data-video="https://player.vimeo.com/video/{{ project.video.token }}" data-caption="{{ project.video.title }}"></div> - {% endif %} - {% for image in project.images %} - <div class="cell" data-caption="{{ image.caption }}"><img src="{{ image.uri }}"></div> + {% for media in project.media %} + {% if media.token %} + <div class="cell video" style="background-image:url({{ media.thumb }})" data-video="https://player.vimeo.com/video/{{ media.token }}" data-caption="{{ media.title }}"></div> + {% else %} + <div class="cell" data-caption="{{ media.caption }}"><img src="{{ media.uri }}"></div> + {% endif %} {% endfor %} </div> <div class="caption"></div> |
