diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-03-30 15:36:20 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-03-30 15:36:20 -0400 |
| commit | d1a251ced60317aa0a0f43e571a4185e654ca9f1 (patch) | |
| tree | 7e722e4561860b1d06a293398f353ebf03625267 /templates | |
| parent | c26e066aee3bcbd84498eb3766a13f8ed8ed904d (diff) | |
active class on menu
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 0973a62..3fd7b0b 100644 --- a/templates/index.liquid +++ b/templates/index.liquid @@ -114,14 +114,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"> |
