summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-04-05 18:44:13 -0400
committerJules Laplace <jules@okfoc.us>2016-04-05 18:44:13 -0400
commit147d333764e625f81f9adaa716793efbf61cd280 (patch)
treec3ac991f12607eac579b00355d283d3403a52c1b
parent7bbdaa82658f5676a9d1331f37dc0bbd3a3af663 (diff)
media title
-rw-r--r--index.js1
-rw-r--r--templates/index.liquid4
2 files changed, 2 insertions, 3 deletions
diff --git a/index.js b/index.js
index 746f42d..1e62275 100644
--- a/index.js
+++ b/index.js
@@ -40,7 +40,6 @@ var app = okcms.createApp({
brief: {type: 'text'},
media: {type: 'media-list'},
mobileMedia: {type: 'media-list'},
- containImage: {type: 'flag'},
press: {type: 'link-list'},
},
},
diff --git a/templates/index.liquid b/templates/index.liquid
index 8c7fdc1..53086da 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -123,9 +123,9 @@
{% if media.type == 'image' %}
<div class="cell desktop image" data-uri="{{ media.uri }}" style="{% if media.caption %}{{ media.caption }}{% endif %}"></div>
{% elsif media.type == 'video' %}
- <div class="cell desktop video" data-uri="{{ media.token }}" style="{% if media.caption %}{{ media.caption }}{% endif %}"></div>
+ <div class="cell desktop video" data-uri="{{ media.token }}" style="{% if media.title %}{{ media.title }}{% endif %}"></div>
{% elsif media.type == 'link' %}
- <div class="cell desktop iframe" data-uri="{{ media.uri }}" style="{% if media.caption %}{{ media.caption }}{% endif %}"></div>
+ <div class="cell desktop iframe" data-uri="{{ media.uri }}" style="{% if media.title %}{{ media.title }}{% endif %}"></div>
{% endif %}
{% endfor %}