summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--site/index.js7
-rw-r--r--site/templates/all.liquid10
-rw-r--r--site/templates/project.liquid2
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>