diff options
| -rw-r--r-- | index.js | 1 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | templates/index.liquid | 8 |
3 files changed, 6 insertions, 5 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/package.json b/package.json index a8ffcca..e7d818a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "dependencies": { "dotenv": "^2.0.0", "object-assign": "^2.0.0", - "okcms": "git+ssh://git@github.com:okfocus/okcms.git#v0.1.25" + "okcms": "git+ssh://git@github.com:okfocus/okcms.git#v0.1.26" }, "homepage": "https://github.com/okfocus/portfolio" } 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> |
