summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.liquid3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/index.liquid b/templates/index.liquid
index 88ca8ea..bba8945 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -65,7 +65,8 @@
<div class="top">
{% for media in project.media %}
{% if media.type == 'image' %}
- <div class="cell {% if project.containImage == 'true' %}contain{% endif %}" style="background-image:url({{ media.uri }})"></div>
+ <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' %}