diff options
| author | Julie Lala <jules@okfoc.us> | 2015-04-09 13:32:45 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2015-04-09 13:32:45 -0400 |
| commit | 3a28bacfc38cd0244ada6e74655d1e30d81d4d34 (patch) | |
| tree | 41e324d4301119941bf33f55ca6d925580d916bd | |
| parent | 70591083a1f7ea9ecf511b62d6a0a010a8da8c24 (diff) | |
video thumbnail and /all page
| -rw-r--r-- | site/index.js | 7 | ||||
| -rw-r--r-- | site/templates/all.liquid | 10 | ||||
| -rw-r--r-- | site/templates/project.liquid | 2 |
3 files changed, 14 insertions, 5 deletions
diff --git a/site/index.js b/site/index.js index 55752e5..6e5aed0 100644 --- a/site/index.js +++ b/site/index.js @@ -53,6 +53,13 @@ var app = okcms.createApp({ '/contact': { data: {type: 'page', query: 'contact'} }, + '/all': { + data: { + type: 'project', + query: '*' + }, + template: 'all' + }, '/retail/:id': { data: { type: 'project', diff --git a/site/templates/all.liquid b/site/templates/all.liquid index edb31d2..852137f 100644 --- a/site/templates/all.liquid +++ b/site/templates/all.liquid @@ -1,6 +1,8 @@ <div class="entry all"> - <div class="project"> - <img src="http://twohustlers.com/bigimages/ss15_1.jpg"> - <span>DIESEL SS15</span> - </div> + {% for project in projects %} + <div class="project" data-id="{{ project.id }}"> + <img src="{{ project.images[0].uri }}"> + <span>{{ project.shortname }}</span> + </div> + {% endfor %} </div> diff --git a/site/templates/project.liquid b/site/templates/project.liquid index 583cb09..bcaea75 100644 --- a/site/templates/project.liquid +++ b/site/templates/project.liquid @@ -4,7 +4,7 @@ <div class="gallery" id="okgallery"> {% if project.video %} - <div class="cell video" style="background-image:url({{ project.video.thumb }}" data-video="https://player.vimeo.com/video/{{ project.video.token }}" data-caption="{{ project.video.title }}"></div> + <div class="cell video" style="background-image:url({{ project.video.thumb }})" data-video="https://player.vimeo.com/video/{{ project.video.token }}" data-caption="{{ project.video.title }}"></div> {% endif %} {% for image in project.images %} <div class="cell" data-caption="{{ image.caption }}"><img src="{{ image.uri }}"></div> |
