diff options
| author | “Ryder <“r@okfoc.us”> | 2016-03-30 16:16:26 -0400 |
|---|---|---|
| committer | “Ryder <“r@okfoc.us”> | 2016-03-30 16:16:26 -0400 |
| commit | f6aedefed2663cdf6af8d7f599f24c6929064516 (patch) | |
| tree | 9b383f614fe8129e423176ee2871ebabe0986deb /templates | |
| parent | c3ac7977fa5921a43f81fb34be08d0d2e8eea5d8 (diff) | |
| parent | 3cf47d8edc92dc005a26773816545963e21051b6 (diff) | |
Merge branch 'master' of https://github.com/okfocus/portfolio
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.liquid | 18 |
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"> |
