summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
author“Ryder <“r@okfoc.us”>2016-03-30 12:31:54 -0400
committer“Ryder <“r@okfoc.us”>2016-03-30 12:31:54 -0400
commit3de0cd15fc27570ab009437689e0e423889d38f7 (patch)
tree40160b69efcd7e31fef63277bf3a2b27cf4c402d /templates
parentb65a71fb6e34e8988eae5357a6d42ba5bb172539 (diff)
only load flickity if theres a gallery
Diffstat (limited to 'templates')
-rw-r--r--templates/index.liquid2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.liquid b/templates/index.liquid
index 4cebc42..323a982 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -113,7 +113,7 @@
</div>
{% for project in projects %}
<div class="item" data-id="{{ project.id }}">
- <div class="top">
+ <div class="top {% if project.media[2] %}gallery{% 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>