summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js1
-rw-r--r--templates/index.liquid8
2 files changed, 5 insertions, 4 deletions
diff --git a/index.js b/index.js
index d8dc14f..d1defae 100644
--- a/index.js
+++ b/index.js
@@ -31,6 +31,7 @@ var app = okcms.createApp({
year: {type: 'number'},
client: {type: 'string'},
link: {type: 'string'},
+ linkText: {type: 'string'},
NatureOfWork: {type: 'text'},
brief: {type: 'text'},
media: {type: 'media-list'},
diff --git a/templates/index.liquid b/templates/index.liquid
index 684086f..18bbea3 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -122,11 +122,11 @@
<div class="top {% if project.media[2] %}gallery{% else %}single{% endif %}">
{% for media in project.media %}
{% if media.type == 'image' %}
- <div class="cell desktop image" data-uri="{{ media.uri }}" style="{% if media.caption %} background-size:{{ media.caption }}; {% endif %}"></div>
+ <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 }}"></div>
+ <div class="cell desktop video" data-uri="{{ media.token }}" style="{% if media.caption %}{{ media.caption }}{% endif %}"></div>
{% elsif media.type == 'link' %}
- <div class="cell desktop iframe" data-uri="{{ media.uri }}"></div>
+ <div class="cell desktop iframe" data-uri="{{ media.uri }}" style="{% if media.caption %}{{ media.caption }}{% endif %}"></div>
{% endif %}
{% endfor %}
@@ -149,7 +149,7 @@
<span>{{ project.year }}</span>
<span>{{ project.client }}</span>
<span>{% if project.alternateTitle %}{{ project.alternateTitle }}{% else %}{{ project.title }}{% endif %}
- <a href="{{project.link}}" class="projectLink">Launch Site</a>
+ <a href="{{project.link}}" class="projectLink">{% if project.linkText %}{{ project.linkText }}{% else %}Launch Site{% endif %}</a>
</span>
<span>
<ul>