summaryrefslogtreecommitdiff
path: root/templates/index.liquid
diff options
context:
space:
mode:
author“Ryder <“r@okfoc.us”>2016-03-28 20:05:01 -0400
committer“Ryder <“r@okfoc.us”>2016-03-28 20:05:01 -0400
commit57a81c9adc42d307e652d895eb66d2120849b514 (patch)
tree61db558d710488dec876a84495cd8b56d507cd65 /templates/index.liquid
parent6d2835c1b7838594f1ca9cb3c1a8fa072657722e (diff)
caption as backgroundsize
Diffstat (limited to 'templates/index.liquid')
-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' %}