diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-04-05 17:30:37 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-04-05 17:30:37 -0400 |
| commit | 7d7b6ad3b14aaaf7f2ef502becd70296601872aa (patch) | |
| tree | 6026312eb78b5274884947752fda62aa16b833c1 | |
| parent | e839de498d12325a31a21d429ba8680674e142a8 (diff) | |
caption as css inject, two fields for link text
| -rw-r--r-- | index.js | 1 | ||||
| -rw-r--r-- | templates/index.liquid | 8 |
2 files changed, 5 insertions, 4 deletions
@@ -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> |
